Random number challenge

Stuart Jansen sjansen at buscaluz.org
Thu Jun 12 09:35:06 MDT 2008


On Thu, 2008-06-12 at 09:24 -0600, Andrew Jorgensen wrote:
> > echo $[ $(od -t u4 /dev/random -N 4 -A n) % $CEILING + 1 ]
> 
> This completely fails the can-Andrew-remember-it test. :-)

Would it help if I put the options in a more logical order?

> > echo $[ $(od -A n -N 4 -t u4 /dev/random) % $CEILING + 1 ]

:-P




More information about the PLUG mailing list