From: Jeff Wood Date: 2005-12-08T06:58:23+09:00 Subject: Re: Newer to Ruby ------=_Part_5793_8984449.1133992692273 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline number =3D ( rand( 599999999 ) + 100000000 ) ... should always generate a 9 digit number. j. On 12/7/05, Kwhamec Rojas < bedeviledme@fastmail.fm> wrote: > > Hi. I am new to Ruby and new to programming altogether, but I am really > trying to learn as fast as I can. > > So here's my problem: I need to be able to generate a random nine digit > number. The first number cannot be 9,8 or 7. > > I am using Watir to test a site, but I will need to randomly generate > this number or the test will be rejected. Thank you very much for > whatever help you can give me. > > -- > Posted via http://www.ruby-forum.com/. > > -- "Remember. Understand. Believe. Yield! -> http://ruby-lang.org" Jeff Wood ------=_Part_5793_8984449.1133992692273--