Closed vetom closed 5 years ago
The function getRandom(0, 1) always returned 1 as it was equivalent to Math.floor(Math.random() * Math.floor(0)) + 1, now is fixed.
getRandom(0, 1)
1
Math.floor(Math.random() * Math.floor(0)) + 1
The function
getRandom(0, 1)
always returned1
as it was equivalent toMath.floor(Math.random() * Math.floor(0)) + 1
, now is fixed.