Open wblakecaldwell opened 4 days ago
from the docs:
The Math.random() static method returns a floating-point, pseudo-random number that's greater than or equal to 0 and less than 1
the random number will never be 1, so Math.floor(Math.random()*19) can never be 19.
Math.floor(Math.random()*19)
from the docs:
the random number will never be 1, so
Math.floor(Math.random()*19)
can never be 19.