Generate Random Numbers from Command Line

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