Answers for "random func in javascript"

5

random number generator javascript

Math.floor(Math.random() * (max - min + 1)) + min;
//max is the highest number you want it to get
//min is the lowest number you want it to get
Posted by: Guest on May-18-2021
1

random function javascript

let object = random(0, 50);
// making "object" a random number between 0 and 50.

console.log(object);
// printing object in the console
Posted by: Guest on June-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language