Link to home
Start Free TrialLog in
Avatar of Hepen
Hepen

asked on

Numeric 4 Digit ID

Is there some kind of .net object that manages and returns 4 digit unique IDs?

For example I may have 1000 to 2000 users connected to my server and each of them needs a unique 4 digit ID.  

User 1 = 1000
User 2 = 1001
User 3 = 1002
...etc

Is there a .net object that I can just call upon that returns me these incremented numbers for example or something?
ASKER CERTIFIED SOLUTION
Avatar of Irwin Santos
Irwin Santos
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
not that i know of. you may need to create your own class for doing this. or you could use the System.Guid.NewGuid to create unique GUID numbers, but they are more than 4 digits (i think they are 32 digits and letters, but they are unique 99.99% of the time).
wow...that was quick...cool. thank you!