Essential C# Generating Random Numbers  Suggest an edit

Generate a random character

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()


Table Of Contents
22 Enum
25 GUID
107 Stream
108 Timers
145 Generating Random Numbers
  ↑ ↓ to navigate     ↵ to select     Esc to close