Random integer in VB.NET
As has been pointed out many times, the suggestion to write code like this is problematic: Public Function GetRandom(ByVal Min As Integer, ByVal Max As Integer) As Integer Dim Generator As System.Random = New System.Random() Return Generator.Next(Min, Max) End Function The reason is that the constructor for the Random class provides a default seed based … Read more