Math.random()

Term side of the Card
Topic: Math
Unit title: Math.random()
Categories: Method
Explanation side of the Card

Explanation: The static method that returns a pseudo-random floating-point number between 0 (inclusive) and 1 (exclusive). It's often used for generating random values.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: