Shell Random Number Generator
Posted: Tue Sep 08, 2009 2:58 am
Sometimes, in the course of writing shell script, a need arises for some random input. Using the built-in $RANDOM shell variable will give you a random number from 0 to 32767 . Let’s take a look at a few examples making use of this shell variable in a number of handy ways. These examples are presented using “while” loops to better illustrate the variable’s functionality. The basic usage is as follows...
Read more: http://www.krazyworks.com/shell-random- ... generator/
Read more: http://www.krazyworks.com/shell-random- ... generator/