Perl-Sensitive Sunglasses | |
PerlMonks |
RE: RE: RE: Randomizing Unique ID?by Adam (Vicar) |
on Aug 10, 2000 at 00:11 UTC ( [id://27183]=note: print w/replies, xml ) | Need Help?? |
You can have the best of both worlds. Use a combination of randomness and uniqueness to make the output unique. Something like, (and I am building on the code in RE: RE: RE: Randomizing Unique ID? ):
Not forgeting to call srand() at some point. And of course, you can use whatever rand() you want. Update: Don't bother seeding. Tye explains the internal seed here. Also, see the Base Conversion Utility.
In Section
Seekers of Perl Wisdom
|
|