05-04-2009, 10:01 PM
I read this somewhere:
And this is a good random function:
For example Random(0, 10) will produce numbers from 0-10.
Quote:By the way, as of VB6 anyway, 'Randomize Timer' is redundant, as that is the default behavior of 'Randomize'.
And this is a good random function:
Code:
Function Random(Lowerbound As Integer, Upperbound As Integer) As Integer
Random = Int((Upperbound - Lowerbound + 1) * Rnd) + Lowerbound
End Function
For example Random(0, 10) will produce numbers from 0-10.