Random number challenge

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


On Thu, 2008-06-12 at 09:08 -0600, Stuart Jansen wrote:
> #!/bin/bash
> CEILING=20
> echo $[ $(od -t u4 /dev/random -N 4 -A n) % $CEILING + 1 ]

Or, someone could just admit to having a d20 in their computer bag. ;-)




More information about the PLUG mailing list