[clug-talk] More fun with random numbers
Gustin Johnson
gustin at echostar.ca
Thu May 17 11:51:59 PDT 2007
http://0xaf.org/software/look_smart.perl
Gustin Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> For the next meeting, here is a script that will generate a random
> number between 1 and a number that you specify as input.
>
> #!/bin/bash
>
> rnumber=$((RANDOM%$1+1))
> echo $rnumber
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD4DBQFGS5v5wRXgH3rKGfMRApM1AJYwOY6OsSfrASTAmCZ2yWJgxBXwAKCEiVak
> hs8FKTBR/r6L4+uEJZBM5A==
> =bony
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> clug-talk mailing list
> clug-talk at clug.ca
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
More information about the clug-talk
mailing list