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 linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
> information.
> List maintainer: listmaster at linux.ie>
--
First they ignore you, then they laugh at you, then they fight you,
then
you win. -- Gandhi
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!