Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //JS
- var getUID = _ => parseInt(Math.floor(Math.random()*10000) + "" + (+ new Date())).toString(36);
- //PHP
- function getUID() { return base_convert( strval(rand(1,9999)) . strval(microtime(true)) , 10, 36 ); }
Add Comment
Please, Sign In to add comment