How is it possible to randomly print an even integer from 2 through 100? Does it to do with Mod I have no idea
Random Function in VB6
Page 1 of 11 Replies - 434 Views - Last Post: 03 November 2012 - 04:41 PM
Replies To: Random Function in VB6
#2
Re: Random Function in VB6
Posted 03 November 2012 - 04:41 PM
Yes, mod is part of it. If your random number mod 2 isn't 0 (i. e. if it can't be divided evenly by 2), get another one until it is.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|