Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GenerateUniqueCode(charset) {
- var d = new Date();
- for(var i=0;i<10;i++)
- {
- console.log('#'+d.getMonth()+""+Math.floor((Math.random() * 99) + 1)+""+d.getDay()+""+Math.floor((Math.random() * 99) + 1)+""+(d.getDay()+d.getMonth()+d.getFullYear()%10)+""+((d.getSeconds()+d.getUTCSeconds())+d.getMinutes()));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement