In brief
The pseudo-random result is in the range of 0 including to 1 exclusively.
Useful to know
Math.random() returns a pseudorandom number x, for which 0 ≤ x < 1. For conditional selection between six positions, Math.floor(Math.random() * 6) gives an index from 0 to 5. [1]
This is an example of an interface game, not a cryptographic use. MDN explicitly warns that Math.random is not suitable for security tasks. Do not generate passwords, recovery tokens, or keys with it. With such needs, use intended cryptographic means in the appropriate environment and a proper generation model.
Sources
For further detail and to check the information: