Random[REP++]
#2

you can't pick a random 'variable'... but you can do so :
pawn Код:
new var[4] =
{
       10,
       20,
       30,
       40
};

new num = random(sizeof(var));
new val = var[num];
Reply


Messages In This Thread
Random[REP++] - by nezo2001 - 27.12.2014, 15:13
Re: Random[REP++] - by Ahmad45123 - 27.12.2014, 15:16
Re: Random[REP++] - by Schneider - 27.12.2014, 15:17
Re: Random[REP++] - by nezo2001 - 27.12.2014, 15:18
Re: Random[REP++] - by nezo2001 - 27.12.2014, 15:20
Re: Random[REP++] - by Ahmad45123 - 27.12.2014, 15:21
Re: Random[REP++] - by nezo2001 - 27.12.2014, 15:25
Re: Random[REP++] - by jackx3rx - 27.12.2014, 15:30
Re: Random[REP++] - by Ahmad45123 - 27.12.2014, 15:30
Re: Random[REP++] - by nezo2001 - 27.12.2014, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)