Answers for "random number'"

16

Random number

function randomInteger(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}
Posted by: Guest on May-29-2020
0

Random number generator

const rndInt = Math.floor(Math.random() * 6) + 1
    console.log(rndInt)
Posted by: Guest on January-05-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language