Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 340 Bytes

random.md

File metadata and controls

14 lines (9 loc) · 340 Bytes

random

Make a random number that has a value between 0 and some larger number that you set as a maximum.

Math.random(5);

Parameters

  • max: the largest number that the random value can be.

Returns

  • a random number that is between 0 and the larger number you gave for max.