Answers for "math random floor javascript"

7

random js

function randomNumber(min, max) {
  return Math.floor(Math.random() * (max - min)) + min + 1;
}
Posted by: Guest on June-27-2020
4

nombre random js

// On renvoie un nombre aléatoire entre une valeur min (incluse) 
// et une valeur max (exclue)
function getRandomArbitrary(min, max) {
  return Math.random() * (max - min) + min;
}
Posted by: Guest on March-30-2020
0

math.floor + roandom

//Write the following code to get a random number between 1 and 10
       const result = Math.floor(Math.random()*(10)+ 1);
Posted by: Guest on October-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language