sergey-t
5/4/2016 - 5:24 AM

math.random

function random ({ min=1, max=300 } = {}) {
  return Math.floor(Math.random() * (max - min)) + min
}
console.log(random())
// <- 133