Re: Quick question

2001-11-23 Thread Lance Keay
quot; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 23, 2001 3:04 AM Subject: Quick question > Hi, > > Anyone know how to get a whole random number in perl? > > rand(18) always gives decimals I nee

Re: Quick question

2001-11-23 Thread Edwin Groothuis
On Thu, Nov 22, 2001 at 10:04:24PM -0500, Andre` Niel Cameron wrote: > Anyone know how to get a whole random number in perl? > > rand(18) always gives decimals I need just like 12 or 7 anyone know? Multiply it by the maximum number you want, for example if you want something between [1,20] you d

Re: Quick question

2001-11-22 Thread Mark Murphy
Andre- How about simply multiplying by 10,100 or what ever you need then dropping the remaining decimal I.E. Int(100*rand(18)); Andre` Niel Cameron wrote: > > Hi, > > Anyone know how to get a whole random number in perl? > > rand(18) always gives decimals I need just like 12 or 7 anyone kno

Quick question

2001-11-22 Thread Andre` Niel Cameron
Hi, Anyone know how to get a whole random number in perl? rand(18) always gives decimals I need just like 12 or 7 anyone know? Regards, Andre` C. Technical Support ԿԬ - Visit our support manual at http://supportmanual.