Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #title :Dice Roller
- #description :Rolls Dice
- #author :Kris Occhipinti - https://filmsbykris.com
- #date :2017-12-13
- #version :0.1
- #notes :sox is needed for tones (sudo apt install sox)
- #==============================================================================
- dice=(⚀ ⚁ ⚂ ⚃ ⚄ ⚅)
- for i in {1..10}
- do
- d=${dice[$RANDOM % ${#dice[@]} ]}
- echo -en "\r$d"
- sleep .1
- play -n -c1 synth fade h 0.1 .1 0.1 2>/dev/null
- done
- echo ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement