a 1 in 30 chanceThat's just because your PRNG is only 15 bits:
With a decent PRNG, you'd have a much lower chance of collisions.$ perl -e 'printf "%.3f%", 2**15/1e4' 3.277%
In reply to Re^7: Generate a unique ID
by Anonymous Monk
in thread Generate a unique ID
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |