javascript generate random number

57

angular random number between 1 and 10 -

function randomNumber(min, max) {
  return Math.random() * (max - min) + min;
}

Comments

Submit
0 Comments