Quantcast
Channel: Blog O' Matty on Prefetch Technologies
Viewing all articles
Browse latest Browse all 49

Creating a set of random numbers from the command line

$
0
0
This past weekend I was doing some database testing and needed to generate some random numbers to populate a table. My typical go-to utility for generating one random number is head piped to od and tr: $ head -c 8 /dev/urandom | od -An -t x | tr -d '' 3a366d317245d2ed ` This works well and can be aded to a loop to get more than one number. But I was curious if there was a native Linux utility available to do this work.

Viewing all articles
Browse latest Browse all 49

Trending Articles