javascript generate random number

59

angular random number between 1 and 10 -

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

Comments

Submit
0 Comments