Random number challenge

Wade Preston Shearer lists at wadeshearer.com
Wed Jun 11 21:10:00 MDT 2008

> This comes up every month at PLUG (for door prizes) so I thought I'd  
> ask here.  What's an easy to remember way to generate a random  
> number between 1 and some given number.  Language doesn't matter so  
> long as the code is easy enough for someone to remember the entire  
> thing and type it up at the drop of a hat.

rand(1, $max);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20080611/2554af2b/attachment.bin 

More information about the PLUG mailing list