in reply to Generating Random Integers

In case you want to use rand for anything else and want an integer you can do the following:
my $randominteger = int(rand 100); print $randominteger;
The int will give you the integer part of the random number. So this example will produce a pseudorandom number between 0 and 99.

Good Luck!