  | | | Shell Script Randomizing? | Shell Script Randomizing? 2006-05-14 - By karlp@(protected)
Back On Sat, May 13, 2006 9:06 pm, inode0 said: > On 5/13/06, karlp@(protected) <karlp@(protected)> 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.
Cool. Now I can limit the values by dividing the result and using the integer value of the result.
Thanks John.
Karl
> > John > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Redhat-install-list mailing list > Redhat-install-list@(protected) > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request@(protected) > Subject: unsubscribe >
-- karl _/ _/ _/ _/_/_/ __ ____ ____ __o _/ _/ _/ _/ _/ __ ____ ____ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson KarlP@(protected) --- Senior Consulting Sys/DB Analyst http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America right after 9/11/2001: http://www.ourldsfamily.com/wtc.shtml --- A right is not what someone gives you; it's what no one can take from you. -Ramsey Clark ---
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Redhat-install-list mailing list Redhat-install-list@(protected) https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request@(protected) Subject: unsubscribe
|
|
 |