Hi,
Think this should do it:
Code:
srand(time ^ $$);
$num = int(rand(10));
$num = $num+10;
AFAIK, if your version of perl is 5.004 or above, you don't need the first (srand) line, rand will call srand itself.
Cheers,
adam
[This message has been edited by dahamsta (edited April 27, 1999).]