Use the
Next(int) method overload to generate a random integer that is less than the specified maximum value.The following example generates the positive random numbers that are less than 10.
C# C# 1001 notes @csharp_1001_notes · 6.66K subscribers Next(int) method overload to generate a random integer that is less than the specified maximum value.