DEV Community

Discussion on: What's the Wackiest Coding Hack You've Ever Seen?

Collapse
 
darthbob88 profile image
Raymond Price

I saw one that worked by finding the right seed for an RNG, then for int ii from 0 to 100 { print [ "Fizz", "Buzz", "FizzBuzz", ii ][rand.nextInt() % 4] }

Another one, that I want to do myself, used a genetic algorithm to evolve an array containing the correct sequence of strings.