Unix systems has their own random numgers generator. It can be employed, for instance, to generate a sequence of random numbers inside a Bash script. The only thing that has to be done is to use the internal function $RANDOM
The next example illustrates the idea:
set -exfor i in $(jot 100 1 1); doecho $RANDOM >> filedone
1 Comment:
Very good sharing this.
Post a Comment