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/
Shell Random Number Generator
Return to “System Administration”
Who is online
Users browsing this forum: No registered users and 1 guest