Hacker News new | ask | show | jobs
by cbreezyyall 1247 days ago
A personal favorite

    ruby -e 'puts (0..99).map {|i| srand(46308667) if (i%15).zero?; ["FizzBuzz", "Buzz", i+1, "Fizz"][rand(4)]}'
1 comments

This is great and was a lot of fun to figure out.

It also has the side effect of making me feel better for never attempting to write my own encryption algorithms! :D