Generates random secret code