in reply to
Testing Random Code
Looking again at the original snippet, the
$pin .= int( rand(9) );
can only ever generate the digits 0 to 8. It should be
int(rand(10))
to get the full range.
Cheers,
JohnGG
Comment on
Re: Testing Random Code
Select
or
Download
Code
In Section
Seekers of Perl Wisdom