Get a random number from command line

Posted by yingbo on Thu 17 March 2016

On mac or bsd, we can use jot.
jot -r 1 0 10000

or
jot -r 1 0 0x7fffffffffffffffL

On linux need to install the package athena-jot:
sudo apt-get install athena-jot