diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-26 09:09:59 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-26 09:09:59 +1300 |
commit | 850eaa9b274cec7d6c84eba5b34b55fdcd40e64e (patch) | |
tree | 3519c7a17119dffe8d46f81997646a2238bf133e /games/dr.sh | |
parent | Add some leading comments to games (diff) | |
download | dotfiles-850eaa9b274cec7d6c84eba5b34b55fdcd40e64e.tar.gz dotfiles-850eaa9b274cec7d6c84eba5b34b55fdcd40e64e.zip |
Adjust dr(6df) to use 2-arg rndi(1df)
Diffstat (limited to 'games/dr.sh')
-rw-r--r-- | games/dr.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/dr.sh b/games/dr.sh index dbb8292f..df21d7a5 100644 --- a/games/dr.sh +++ b/games/dr.sh @@ -22,8 +22,7 @@ esac # Roll the dice the appropriate number of times using rndi(1df) i=0 t=0 while [ "$i" -lt "$n" ] ; do - seed=$(rnds) - r=$(rndi 1 "$d" "$seed") + r=$(rndi 1 "$d") t=$((t + r)) i=$((i + 1)) done |