Random number challenge

Andrew Jorgensen andrew at jorgensenfamily.us
Wed Jun 11 19:54:49 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.

Go, lazylist, go! 

More information about the PLUG mailing list