Answers for "fonction random javascript"

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
0

javascript random number function

let result = RandomNumber(5, 9); // result can be any value from 5 to 9

// Random number between min and max (min and max included)
function RandomNumber(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min;
}
Posted by: Guest on October-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language