Use the $RANDOM bash built-in function to generate random number between 0 – 32767 as shown below.
$ echo $RANDOM 22543 $ echo $RANDOM 25387 $ echo $RANDOM 647
Use the $RANDOM bash built-in function to generate random number between 0 – 32767 as shown below.
$ echo $RANDOM 22543 $ echo $RANDOM 25387 $ echo $RANDOM 647
Next post: Hack 86. How to Debug a shell script
Previous post: Hack 84. Execution Sequence of .bash_* files