Help with 2D array creation
Posted: Tue Feb 15, 2011 5:51 pm
Evening all:)
I'm new to this forum, so apologies if this problem has been previously covered or if I should be posting this in a different topic.
Just a quick question.
I'm needing to create a 2D array(4 rows and 4 columns) containing 16 random unique numbers between 1 and 60(inclusive). I'm still in the middle of learning PHP so I'm having a small problem coding.
I've created my 2D array already, but I'm having trouble with the unique numbers. Although I have the number unique to each row/column, I can't seem to get my head around being able to get each number unique to the overall 2D array.
Any help/advice would be much appreciated!
I'm new to this forum, so apologies if this problem has been previously covered or if I should be posting this in a different topic.
Just a quick question.
I'm needing to create a 2D array(4 rows and 4 columns) containing 16 random unique numbers between 1 and 60(inclusive). I'm still in the middle of learning PHP so I'm having a small problem coding.
I've created my 2D array already, but I'm having trouble with the unique numbers. Although I have the number unique to each row/column, I can't seem to get my head around being able to get each number unique to the overall 2D array.
Any help/advice would be much appreciated!