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