PHP BINGO Need Help
Posted: Sun Jan 01, 2012 6:36 am
My cousin wants me to make a PHP Bingo but my problem is i don't know what method or operator to use on the rand(1,15) to check if the number has already been randomized.
The first line on BINGO is good randomized numbers according to B I N G O but my problem is the second line can repeat itself so i need a solution to not put the first line to the second.
Sorry if my english is very hard to understand
Example : print rand(1,15);
Output : 9
The next random number on the table should be any number except 9.
Thank you very much sirs to those who will read and to those who will help...
PS. I just started my tutorial with my cousin about PHP last 2 days so yeah i am a newbie
The first line on BINGO is good randomized numbers according to B I N G O but my problem is the second line can repeat itself so i need a solution to not put the first line to the second.
Sorry if my english is very hard to understand
Example : print rand(1,15);
Output : 9
The next random number on the table should be any number except 9.
Thank you very much sirs to those who will read and to those who will help...
PS. I just started my tutorial with my cousin about PHP last 2 days so yeah i am a newbie