Answers for "js get randoum integer"

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 "Javascript"

Browse Popular Code Answers by Language