Ruby code for testing the Infinite Monkeys Theorem