- Feature Articles
- CodeSOD
-
Error'd
- Most Recent Articles
- Remember Remember
- Named And
- It's About Time
- Scrollpocalypse
- Fast Quick
- 12345
- Said Different
- Ai Dios Mio
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
There's almost certainly a "Things programmers don't understand about random numbers" compilation out there somewhere. Not gonna bother looking. But Rule 1 ought to be " 'Random' and 'unique' are two unrelated ideas. NEVER mix them up."
Edit Admin
What's interesting is the answer to "if I used a sampler with replacement, how many for that 50% chance of duplicates?"...
And that answer is "379, duh." Conclusion: it's still probably not enough to be "safe", unless it's for just a small handful of VMs.
Admin
Remember, one of the weaknesses of the Enigma Machine was that it never mapped a input character to itself. That hard-coded rule was the chink that let in the codebreakers.
Admin
what surprises me is that to get to this relatively esoteric function, they must have read past the documentation about plain old random value generation and thought to themselves 'no that's not what I want' !?!?