Guest User

Untitled

a guest
Nov 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. //JS
  2. var getUID = _ => parseInt(Math.floor(Math.random()*10000) + "" + (+ new Date())).toString(36);
  3.  
  4. //PHP
  5. function getUID() { return base_convert( strval(rand(1,9999)) . strval(microtime(true)) , 10, 36 ); }
Add Comment
Please, Sign In to add comment