You
want to make random numbers in a given range, inclusive, such as when
you randomly pick an array index, simulate rolling a die in a game of
chance, or generate a random password.
2.6.2. Solution
Use Perl's
rand function:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.