Skip to content

Instantly share code, notes, and snippets.

@joshlawrence
Created December 8, 2020 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshlawrence/edb7399723d43c995d92a48768e3d7f4 to your computer and use it in GitHub Desktop.
Save joshlawrence/edb7399723d43c995d92a48768e3d7f4 to your computer and use it in GitHub Desktop.
Russian Roulette in Bash
#!/usr/bin/env bash
[ $[ $RANDOM % 6 ] = 0 ] && echo "BANG" || echo "Click"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment