Reply to
:
Why not just use the current time (as an integer)?
Depending upon the lifetime you have to operate over, 8 digits may not be enough and if you need a whole bunch of random numbers quickly, the current time may not advance fast enough. Time is generally a good thing to use for a non-repeating unique number, but the 8 digit limitation might handicap that for this particular use.
This will not be 8 characters long.
Great idea just pared it with jQuery, as the date with the integers in the date that won’t be the same over time. Very Good Idea!
If you enjoyed my content for some reason, I'd love to hear from you! Here are some options:
- You can buy me a coffee!
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!