Among a few tweaks, I randomized the first prefix in the generate function.