you for got the int.. he said whole numbers

my $rand_num = int(rand(90) + 10);

> -----Original Message-----
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 12:25 PM
> To: begin begin
> Subject: Re: Random generator
> 
> 
> 
> On Wednesday, July 17, 2002, at 09:15 , Jilani, Mohammad K wrote:
> 
> > How can I generate a whole number betwee 10 - 99?
> >
> 
> perldoc -f rand
> 
> and then tweek it
> 
> since rand runs from 0 you might try say
> 
>       my $rand_num = rand(90) + 10;
> 
> 
> 
> ciao
> drieux
> 
> ---
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to