Generate a random character

suggest change

Generate a random letter between a and z by using the Next() overload for a given range of numbers, then converting the resulting int to a char

Random rnd = new Random();
char randomChar = (char)rnd.Next('a','z'); 
//'a' and 'z' are interpreted as ints for parameters for Next()

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents