Random number challenge

Jason Hall jayce at lug-nut.com
Wed Jun 11 20:34:08 MDT 2008


On Wed, Jun 11, 2008 at 7:54 PM, Andrew Jorgensen
<andrew at jorgensenfamily.us> wrote:
> 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!

Every month I forget to bring my big roll of raffle tickets I bought
for plug a while back :(

Now why don't we just do the Binary "grab-bag" selection?

-- 
Jayce^

The Cloud is my Platform



More information about the PLUG mailing list