Random number challenge

Corey Edwards tensai at zmonkey.org
Thu Jun 12 09:28:55 MDT 2008


On Thu, 2008-06-12 at 09:24 -0600, Joshua Lutes wrote:
> On Wed, 2008-06-11 at 19:54 -0600, Andrew Jorgensen 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.
> 
> 
> Why not just use the PHP version (or javascript or whatever) and put it on a
> page on the website?  You could make it as "cryptographically appropriate"
> as you want and never have to worry about forgetting it or whatever.
> 
> Then you just have to type "http://plug.org/random/".

Well for that matter, just use random.org.

Corey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20080612/a297ae29/attachment.bin 


More information about the PLUG mailing list