Use the
Next(int min, int max) overload method to get a random integer that is within a specified range.In the above example,
rnd.Next(10, 20) generate random numbers that will be between 10 to 19.
C# C# 1001 notes @csharp_1001_notes · 6.66K subscribers Next(int min, int max) overload method to get a random integer that is within a specified range.rnd.Next(10, 20) generate random numbers that will be between 10 to 19.