<p>Because <code>Math.random()</code> returns a floating-point number, we can multiply it, then use <code>Math.floor()</code> to return the largest integer less than or equal to the random number. This provides a more uniform distribution than using <code>Math.round()</code>.</p>