nums = 10.times.map{ 20+Random.rand(11) }p nums
Standard input is empty
[21, 27, 20, 24, 24, 23, 27, 27, 25, 29]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!