How do I pick a word at random from a list of words?
Govind N. Kamat
kamat at uceng.UC.EDU
Fri May 19 13:26:00 AEST 1989
In article <19669 at adm.BRL.MIL> bjornand at idt.unit.no (Bjoern Andersen) writes:
>
>I need to pick a word from a list in a random sequence. How do I
>achieve that in a csh or sh script?
ksh has a variable called RANDOM, which returns a random value each
time it is accessed. sh has no equivalent; I don't know about csh.
You could always write a C program to call rand().
--
Govind N. Kamat College of Engineering
kamat at uceng.UC.EDU University of Cincinnati
Cincinnati, OH 45221, USA
More information about the Comp.unix.questions
mailing list