Quote Originally Posted by dday9 View Post
Would this suffice?
Code:
Public Function randomNumber(ByVal low As Integer, ByVal high As Integer) As Integer
        Dim r As New Random
        randomNumber = r.Next(low, high)

        Return randomNumber
    End Function
Don't do this. This is wrong. Do not construct the Random instance in the function. Your application should only ever create one Random instance and all places that need to use it should be passed a reference. With the above function, if it is called twice in succession it will return the same number, as both calls will seed the Random with the same value.