Shell Script Randomizing?

inode0 inode0 at gmail.com
Sun May 14 03:06:30 UTC 2006


On 5/13/06, karlp at ourldsfamily.com <karlp at ourldsfamily.com> wrote:
> How can I create a random number in a bash shell script? I've done a bit of
> 'google-ing' and `man random, srandom, initstate, setstate - random number
> generator` and can't find any suitable answers.

Does the RANDOM variable in bash suit your purposes? See "man bash"
and search for RANDOM. If not, perhaps you could tell us a bit more
about what you require.

John




More information about the Redhat-install-list mailing list