Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
1.70/5 (3 votes)
See more:
I would like to get random characters using C#.net
Posted
Comments
[no name] 21-Aug-12 9:27am    
I would like to get a winning lottery ticket.

.Net contains a Random [^]class which can be used to generate random numbers. You can make use of this class to generate random characters as well.

Take a look at this article for inspiration:

http://www.dotnetperls.com/random-lowercase-letter[^]
 
Share this answer
 
Comments
Mehdi Gholam 21-Aug-12 8:03am    
5'ed
Manas Bhardwaj 21-Aug-12 8:04am    
thx :)
Prasad_Kulkarni 21-Aug-12 8:52am    
MY 5!
Manas Bhardwaj 21-Aug-12 9:07am    
thx!

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