Answers for "random number between 1 and 50 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

Code answers related to "random number between 1 and 50 javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language