Generate random number

On Linux we can use /dev/random to generate a random number.

od -An -N2 -i /dev/random

To generate a random number named temporary file we use touch command:

touch `od -An -N2 -i /dev/random`.tmp

Another/easiest way is to install rand using apt-get tool:

apt-get install rand

Now we can generate random number from this rand command:

rand
#23434

No related posts.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>