On Wednesday, July 17, 2002, at 09:29 , Nikola Janceski wrote:

> you for got the int.. he said whole numbers
>
> my $rand_num = int(rand(90) + 10);
>

good point! I had forgotten to be explicit
that we wanted an int...


eg:

        my $int = 10;
        my $count = rand($int) + $int;

        print $count;

will generate 'float values'.



ciao
drieux

http://www.wetware.com/drieux/pbl/

--------------

This space left intentionally blank.


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

Reply via email to