aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-26 09:09:59 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-26 09:09:59 +1300
commit850eaa9b274cec7d6c84eba5b34b55fdcd40e64e (patch)
tree3519c7a17119dffe8d46f81997646a2238bf133e /games
parentAdd some leading comments to games (diff)
downloaddotfiles-850eaa9b274cec7d6c84eba5b34b55fdcd40e64e.tar.gz
dotfiles-850eaa9b274cec7d6c84eba5b34b55fdcd40e64e.zip
Adjust dr(6df) to use 2-arg rndi(1df)
Diffstat (limited to 'games')
-rw-r--r--games/dr.sh3
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