notes/BASH Dice Roller with Sound-vew9WgsX.sh
#!/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 ""
syntax highlighted by Code2HTML, v. 0.9.1