randombeginner// Pseudo-random float in [0, 1)
Math.random() // β e.g. 0.7421...
Math.floor(Math.random() * 6) // β 0β5Use Math.random() to generate a pseudo-random floating-point number between 0 (inclusive) and 1 (exclusive).
Returns a pseudo-random floating-point number in the range [0, 1).
Challenge: Verify that Math.random() always returns a value strictly less than 1.