Javascript Math rand(l, u)

Description

Javascript Math rand(l, u)

Math.rand = function (l, u) {
  return Math.floor((Math.random() * (u - l + 1)) + l);
};



PreviousNext

Related