From: Armin Roehrl Date: 2002-04-12T03:00:43+09:00 Subject: Re: rand On Thursday 11 April 2002 19:36, you wrote: > I need random digits 1..10 > (no zeros, but ones, twos, threes ... tens) > > Is rand(10)+1 the way to go? yes. maybe you want to initialize with srand first. -- Armin. ----------------------------------------------- Armin Roehrl, http://www.approximity.com Training, Development and Mentoring OOP, XP, Java, Ruby, Smalltalk, Datamining, Parallel computing, Webservices Koautor des ersten dt. Rubybuches http://approximity.com/rubybuch/ Naechstes Rubyseminar: 9/9-11/9 in Hamburg.