Generates a customisable random string