Hi
Anyone can pls help me with a unique random number generator of length 3, prefixed with values from DDMMYYYY (e.g. for today's date 25062015001)?
Ritesh_4 71 Posting Pro
Recommended Answers
Jump to Post— pritaeas 2,276return Math.random() * 899 + 100;Have a look at this one:
new Date().getFullYear()Am sure you'll be able to figure it out.
Jump to Post— rproffitt 3,266Back to the person who wrote this spec. They didn't reveal how many they needed in a day so with 0 to 999 possible values, not only is there that "unique" spec but the missing spec on how to handle it running out of numbers.
Frankly the random bit could …
All 5 Replies
pritaeas 2,276 Most Valuable Poster Moderator Featured Poster
rproffitt 3,266 https://5calls.org Team Colleague
Ritesh_4 71 Posting Pro
rproffitt 3,266 https://5calls.org Team Colleague
Ritesh_4 71 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.