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 Postreturn 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 PostBack 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,194
¯\_(ツ)_/¯
Moderator
Featured Poster
rproffitt
2,580
"Nothing to see here."
Moderator
Ritesh_4
71
Posting Pro
rproffitt
2,580
"Nothing to see here."
Moderator
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.