From: Caleb Tennis Date: 2005-12-08T06:00:31+09:00 Subject: Re: Newer to Ruby > >> digits = [rand(7)] + Array.new(8) { rand(10) } > > => [5, 6, 1, 2, 5, 4, 7, 1, 1] I was thinking: ( [rand(6)+1] + Array.new(8) { rand(10) }).to_s.to_i