Fix missing array clear in Dice

This commit is contained in:
Michael Adams
2023-08-01 01:35:45 -07:00
parent 13d28f51ba
commit e0dc9d61ce

View File

@@ -18,6 +18,8 @@ while(retry):
echo("\n")
echo("HOW MANY ROLLS")
x = readLine(stdin).parseInt()
for v in 2..12:
f[v] = 0 # Initialize array to 0
for s in 1..x:
a = rand(1..6) # Die 1
b = rand(1..6) # Die 2