12.07.2014, 06:01
Is it possible to make a function getting specific random numbers?
Example:
And then it'll get random number from these 5 numbers!
OR:
Make a function to get random numbers from min to max then delete some unwanted numbers and let the random choose another!
Example:
Then if the random number would be (500, 414 or 523 etc..) for example, so it should re random the min-max numbers and choose another.
Example:
pawn Код:
random(400, 300, 123, 453, 111);
OR:
Make a function to get random numbers from min to max then delete some unwanted numbers and let the random choose another!
Example:
pawn Код:
stock RandomEx(min, max)
{
return random(max - min) + min;
}
RandomEx(400, 612);