Dim intRandom As Integer
intRandom = CInt(Int((3 * Rnd()) + 1))
'every time I do this it counts 1, 1, 1, 2, 2, 2, 3 I tried changing it around a bit and now it's counting 3,2,1,2,2 every time...is this suposed to be giving me the same random numbers every time?
Dim generateRandom As New Random
intRandom = generateRandom.Next(2) + 1
'this is only giving me the results of 1-2, not 1-3 like I want
*edit*
adding "Randomize()" fixed it ^.^
Edited by jamesbob, 11 September 2005 - 05:35 PM.