snippet: random numbers in ruby