C#C
C#3y ago
Emelie

❔ I don´t understand this line of code at all (random char letter)

Hi, I am finding it really hard to understand how its possible to randomize a letter like this:

Random rnd = new Random();
char randomChar = (char)rnd.Next('a', 'z');

I thought that the Next() method only could take int's as a parameter?
Was this page helpful?