result = 0 5.times do result = result * 10 + rand(1..6)end puts result
Standard input is empty
14661
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!