Page 1 of 1

Random Control

Posted: Tue Jun 16, 2015 12:28 am
by ferhan24badshah
I want to randomly put either 1 or 2 in a variable x

I did this by..

put random(2) into x

How do I control the random selection in a way where neither 1 or 2 is selected more than 4 times. Thanks!

Re: Random Control

Posted: Tue Jun 16, 2015 2:43 am
by dunbarx
How are you putting these numbers out? The way you do it will determine the way to limit the instances of each.

Craig Newman