Click here to Skip to main content
16,018,353 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I need code for random number generation start with USR character and 5 digit value?
Posted
Comments
Zoltán Zörgő 25-Jan-13 7:44am    
I don't understand your requirements. What is "USR character"? Please give us some examples.
Sergey Alexandrovich Kryukov 25-Jan-13 9:37am    
It has nothing to do with ASP.NET.
—SA

Hi,
Please chekout below link,
Random number generator function in C#[^]
 
Share this answer
 
No idea what a "USR character" is, but a random number is an integer in .NET. So try:
C#
private Random rand = new Random();
...
   int i = rand.Next(100000);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900