0

I have this code but I do not know how to do it so that I do not repeat numbers

example: 2433,1150 ---> this is the code

Model.prototype.number_rand = function(){
    var number =  Math.floor(1000 + Math.random() * 9000)
    console.log(number)
    return number
}
glennsl
  • 28,186
  • 12
  • 57
  • 75
Oscar Diaz
  • 103
  • 4

0 Answers0