Random between 4 numbers
#2

Not sure how you want it but the function is fixed.

Quote:

RandomMatsAmount()
{
switch(random(4))
{
case 0: { return 25000; }
case 1: { 50000; }
case 2: { 75000; }
case 3: { 100000; }
}

return 1;
}

Reply


Messages In This Thread
Random between 4 numbers - by Zloto - 05.05.2015, 21:19
Re: Random between 4 numbers - by Kyle - 05.05.2015, 21:21
Re: Random between 4 numbers - by Kar - 05.05.2015, 21:25
Re: Random between 4 numbers - by Zloto - 05.05.2015, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)