Random Arrays
#2

Just make it easy and make a multidimensional array like this:

PHP код:
stock const array[][] = {
    {
1,2,3,4},
    {
5,6,7,8},
    {
9,10,11,12}
};
printf("%d",array[random(sizeof array)][random(sizeof(array[]))]); 
Greekz
Reply


Messages In This Thread
Random Arrays - by Luis- - 06.03.2015, 14:05
AW: Random Arrays - by Kaliber - 06.03.2015, 14:08
Re: Random Arrays - by Luis- - 06.03.2015, 14:13
Re: Random Arrays - by RedFusion - 06.03.2015, 14:17
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:18
Re: Random Arrays - by Luis- - 06.03.2015, 14:21
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:25
Re: Random Arrays - by Luis- - 06.03.2015, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)