random numbers in awk?
Jonathan I. Kamens
jik at athena.mit.edu
Wed Apr 24 20:08:23 AEST 1991
In article <1991Apr24.041134.14519 at athena.mit.edu>, I write:
|> You would call "jot -r 1 max" where "max" is the number of records from which
|> you are selecting.
I should have said "jot -r 1 1 max", rather than "jot -r 1 max". The former
tells jot to produce 1 number between 1 and max; the latter tells jot to
produce 1 number between max and 100, which is the default maximum value.
--
Jonathan Kamens USnail:
MIT Project Athena 11 Ashford Terrace
jik at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8085 Home: 617-782-0710
More information about the Comp.unix.questions
mailing list