Russian Roulette in Bash

# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”
* You either live or …. rm -rf /
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”
* You either live or …. rm -rf /
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
December 5th, 2007 at 4:58:23
you mad maaann… but yes - it is funny indeed
December 5th, 2007 at 5:00:51
This is “a some time” old, but the new design is quite good.
I had my laugh. Good job Photoshopping
December 5th, 2007 at 5:01:34
Gimp, maaan, Gimp.. no photoshop..
December 5th, 2007 at 5:04:37
Could not miss that one
Russians are loyal, at least when they hack you they give you a chance to live
Wonder how many times this gets run on the “bad” server though, to approach the chance closer to zeroooo
December 5th, 2007 at 9:02:39
Ва хаха =) Очень смишно. Стёрли /
Причём тут рулетко?
December 5th, 2007 at 9:57:17
Don’t know how much of “russian piople” you are (cause of your Russian spelling), but:
Это же очень просто - в 6 разрядном барабане 1 пуля, дальше мы раскручиваем барабан (”$RANDOM % 6″) и стреляем, если пуля вылетела (… == 0), то / стёрт, если нет (если сгенерировалась цифра > 0), то мы живы!
“Учите немецкий, чтобы понимать порно”
December 14th, 2007 at 21:08:39
Hah, nice game.
May 14th, 2008 at 17:02:19
The Russian roulette in bash was great, really enjoyed it, highly recommended!
September 27th, 2008 at 14:49:16
А какая разница с кокой стороны барабан крутить ? все равно выйдет 6..или нет ?
September 29th, 2008 at 13:53:22
@Anjago,
Не, не всё равно. Выйдет точно как в рулетке - от 0 до 6.. И если не повезёт, то.. будет капыдыдыдышь..