In Linux OS, there is random numbers generator which generates a random numbers without any pattern.So in this post we will How To generate random numbers in Linux.

This is just work as any other Linux variable and can call echo $RANDOME. So in case you need to generate some random numbers in Linux, this cloud be important tool for you.

[root@srv3 ~]# echo $RANDOM

You can generate as many as random numbers using this variable with a simple code.

read -p "How many times: " number ; for ((i=1; i<= $number; i++ )); do echo $RANDOM ;done