unknown wrote: > Have a look at the rand method. It will not allow you to specify a > range, but will generate a number between 0 and (max1 - 1). If you > make ((max1 - 1) - 0) equal to your range (which in the case of your > example is 2000 - 60 = 1940 + 1 = 1941), and then scale it up by 60, > youll always end up with a random number in the range you're looking > for. Excellent. Thanks very much for your reply, it's a nice welcome to the forum -- Posted via http://www.ruby-forum.com/.