Bingo-like raffle

for i in $(seq 1 100 | sort -R); do echo $i; sleep 5; done
Random choose numbers from 1 to 100 with 5 seconds interval without duplicates.
Sample Output
67
92
40
13
43
97

1 Alternatives + Submit Alt

What Others Think

You can also use shuf command instead of 'sort -R'. for i in `seq 100 | shuf`; do echo $i; sleep 5; done for i in `shuf -i 1-100`; do echo $i; sleep 5; done
seungwon · 415 weeks ago
Thanks seugwon! This command is new to me, but it's part of coreutils. :)
fernandomerces · 415 weeks ago
We need to learn such programing language to develop different software. This is the task of a software engineer. I am not amazed to see that now people are getting towards technology slowly which students can get best assignment writing service to manage the task. This coding is also used as a formula to introduce something into your development.
MaryKlein · 18 weeks ago

What do you think?

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.

What's this?

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.

Share Your Commands



Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: