Random number.
#1

It's ok to create a random item between 1276,1550,1210 and 1247?

Код:
new RandomT = random(4);
	switch(RandomT)
	{
		case 0:
		{
		    return 1276;
		}
		case 1:
		{
		    return 1550;
		}
		case 2:
		{
		    return 1210;
		}
		case 3:
		{
		    return 2710;
		}
		case 4:
		{
		    return 1247;
		}
	}
	ObiectTreasure = CreatePickup(RandomT, 21, gRandomPositions[rand][0], gRandomPositions[rand][1], gRandomPositions[rand][2]);
Reply


Messages In This Thread
Random number. - by Longover - 02.02.2019, 20:26
Re: Random number. - by Lokii - 02.02.2019, 20:48
Re: Random number. - by Longover - 02.02.2019, 20:55
Re: Random number. - by Lokii - 02.02.2019, 21:07
Re: Random number. - by Longover - 02.02.2019, 21:18
Re: Random number. - by Lokii - 02.02.2019, 21:26
Re: Random number. - by Longover - 02.02.2019, 21:49

Forum Jump:


Users browsing this thread: 3 Guest(s)