OooOooh....now I know why I haven't made a meeting yet :)

J
---
Sent from the road...
-----Original Message-----
From: Gustin Johnson <[EMAIL PROTECTED]>
Date: Wednesday, May 16, 2007 6:05 pm
Subject: [clug-talk] Random number generator
To: CLUG General <[email protected]>Reply-To: CLUG General <[email protected]>

-----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
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying




_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to