How do I pick a word at random from a list of words?
Blair P. Houghton
bph at buengc.BU.EDU
Sat May 20 05:57:33 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?
>
>-- Bjoern.
In the Unix archives at j.cc.purdue.edu, ( anonymous ftp to it, use
128.210.9.2 if necessary...) in the comp.unix.sources/volume2
directory, is a PD program called 'choose'. Snarf it, compile it, and
try it. It selects random lines from a file, but the least you can do
is rearrange its innards to select random words from a
whitespace-separated set of words...
--Blair
More information about the Comp.unix.questions
mailing list