Re: [ILUG] Random number?

From: John O Sullivan (johno at domain cruithne.org)
Date: Sun 25 Feb 2001 - 20:52:04 GMT


export RANDOM=(any number between 0-32767)
#This initialises RANDOM
echo $RANDOM
#Spits out a random number (between 0-32767)

afaik there is no way to generate a completely random number with a
computer apart from bombarding it with xrays and reading a section of
memory

johno

On Sun, 25 Feb 2001 20:28:52 Ruairi Newman wrote:
> Hi all,
>
> Can anyone tell me what the quickest cleanest way to generate a
> completely random number in a bash shell script is?
>
> Rgds,
>
> Ruairi
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
> information.
> List maintainer: listmaster at domain linux.ie
>

-- 
First they ignore you, then they laugh at you, then they fight you,
then
you win. -- Gandhi


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:09:06 GMT