Answers for "generate number code javascript"

4

javascript random

function random(min, max) {
  return ~~(Math.random() * (max - min + 1) + min);
}
random(1, 5);
Posted by: Guest on June-08-2020
10

javascript generate random number

Math.random();
Posted by: Guest on November-28-2019

Code answers related to "generate number code javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language