altho this might surprise you, its as simple as:
$foo = int rand 100;
perl just Does The Right Thing =)
Jos Boumans
----- Original Message -----
From: "Nick Transier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 10:57 PM
Subject: truncating
> If I am generating a random number with the rand function, how can I
> truncate the resulting var to an integer?
>
> -Nick
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>