-bash2-2.05b$ uname -sr
FreeBSD 5.4-RELEASE-p14
-bash2-2.05b$ ruby -e "puts (1..20).map {rand(10 ** 10).to_s.rjust(10,'0')}"
6366075576
2917975774
7329745840
8691581041
5890408189
1638634981
0295194105
6344513644
4301587535
4936779610
1481540380
5683771498
6753375812
4915063505
1500897963
8012594603
1481070124
3665078190
0436854511
6307883169
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
echo $RANDOMcat /dev/urandom | hexdump -d | awk '{ print $2$3}' | head -n20the ruby is still faster ... cheers for choosing ruby