On Mon, 20 Nov 2000, Christopher Vasanth wrote:
> 
> Hi there:
> 
> Can anyone show me how to generate a random number in a shell script?

Simplest, if you are using BASH:
 echo $RANDOM

Otherwise, you can read /dev/random or /dev/urandom. But that'd be tedious
from a shell script.

Sreeji


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to