Random(X) to pick randomly for specific numbers
#5

Or create an array with numbers

Код:
new theArray[] = {1, 3}, theRandom = random(sizeof theArray);

switch(theArray[theRandom])
{
	case 1: ...
	case 3: ...
}
Reply


Messages In This Thread
Random(X) to pick randomly for specific numbers - by CalvinC - 27.01.2015, 19:48
Re: Random(X) to pick randomly for specific numbers - by Sime30 - 27.01.2015, 19:57
Re: Random(X) to pick randomly for specific numbers - by Jefff - 27.01.2015, 20:00
Re: Random(X) to pick randomly for specific numbers - by CalvinC - 27.01.2015, 20:08
Re: Random(X) to pick randomly for specific numbers - by ball - 27.01.2015, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)