Safe Russian Roulette (only echo, don't delete files)

[ $[ $RANDOM % 6 ] == 0 ] && echo 'Bang!' || echo 'Click...'
Shows "Bang!" in a chance of 1 out of 6, like in the original game with the gun (spin every round). Otherwise, echoes "Click...". If feeling brave you can also do: [ $[ $RANDOM % 6 ] == 0 ] && echo 'Bang!' && a really killer command || echo 'Click...'
Sample Output

By: paulera
2016-03-23 11:09:56

What Others Think

Hello, I am certain that you have heard at any rate once in your life from a companion, a fantastic story of winning in an online gambling club, or winning a bet. I figure you didn't actually confide in such bits of gossip, however imagine a scenario in which I revealed to you that this happened to me as well, and it drastically transformed me, when companion exhorted me this site - it is genuinely dependable and doesn't hinder clients who genuine cash win.
JeremyYang · 5 weeks and 3 days ago
Artyku? jest bardzo pouczaj?cy. Dobrze wiedzie? o tych informacjach. Ale tutaj szukam dowolnego legalnego kasyno online w polsce. Kasyno, którego szukam, b?dzie najlepsze i bezpieczne. Je?li masz jakie? pomys?y na ten temat, podziel si? swoimi sugestiami.
MarceloFLewis · 3 weeks and 4 days ago
Kasyna online przygotowa?y dobr? sugesti? dla graczy. Kasyno zosta?o uruchomione w 2010 roku po otrzymaniu licencji na Malt?, Curacao, która umo?liwia mu ?wiadczenie us?ug na terenie ca?ej Unii Europejskiej. Witryna posiada wersje j?zykowe dla wi?kszo?ci krajów rozwini?tych w Europie. Od strony oprogramowania kasyno prezentuje si? naprawd? spektakularnie, proponuj?c gry takich dostawców jak Playson, Microgaming, Netent czy Betsoft.
d289olge · 1 day 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? 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.


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: