🐛 Fix call to Random.Next()
continuous-integration/drone/push Build is passing Details

Next(a, b) returns a random int between a (INCLUDED) and
b (EXCLUDED) -- that is, in [a, b[
pull/82/head
Alexis Drai 3 years ago
parent b4bcd40190
commit 7f10eaed24

@ -18,7 +18,7 @@ namespace Model.Dice
public T GetRandomFace()
{
int faceIndex = rnd.Next(1, ListFaces.Count() + 1);
int faceIndex = rnd.Next(0, ListFaces.Count());
return ListFaces.ElementAt(faceIndex);
}
}

Loading…
Cancel
Save