first check-in of feisty meow codebase. many things broken still due to recent
[feisty_meow.git] / scripts / multimedia / randomly_play.sh
1 #!/bin/bash
2 # this decides randomly whether to invoke the play_random script or not.
3
4 NOISE_IT_UP=$(expr $RANDOM / 91)
5   # range is 0 to 360 after the division.
6 #echo noise lev is $NOISE_IT_UP
7 if [ $NOISE_IT_UP -gt 108 -a $NOISE_IT_UP -le 128 ]; then
8   # we hit our percentage.
9   bash $SHELLDIR/play_random.sh
10 fi
11