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
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
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
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.