In my application, i am using datepicker from jqueryui, It needs the unique id's for each input element. to do that,
i use this function (example):
   var x = 100;
    $("a").on("click", function(){
        console.log(Math.floor(Math.random() * x ));
    })
my question is, how to i assure, that no random number will not get repeated. so, i can avoid the duplicate id's.
Thanks in advance..
 
     
     
     
    