Shell – Stochastic version of seq for generating sequence of random numbers/words

command lineshell

Some time ago I used a seq-like tool for printing a sequence of pseudo random generated numbers to stdout. You could specify a range, seed, and the number of samples and much more.

I've just forgotten the name of this tool. Can anyone help me out?

Perhaps you know even a more advanced tool that, for example, supports different probability distributions or even the generation of a sequence of random words under different alphabets and length/character distributions.

Best Answer

Do you mean jot?

$ jot 
jot: jot - print sequential or random data
usage:  jot [ options ] [ reps [ begin [ end [ s ] ] ] ]
Options:
    -r      random data
    -c      character data
    -n      no final newline
    -b word     repeated word
    -w word     context word
    -s string   data separator
    -p precision    number of characters

If you use Ubuntu the package is athena-jot. A simple example:

$ jot -r 10 12 27
26
13
22
18
25
12
13
23
15
23

Bye.

Related Question