title: php array generation challenge
body: <p>I need to randomly generate an two-dimensional n by n array. In this example, n = 10. The array should have this structure. One example:</p>
  
  <pre><code>$igra[]=array(0,1,2,3,4,5,6,7,8,9);
  $igra[]=array(6,9,1,5,0,2,7,3,4,8);
  $igra[]=array(2,5....................
  $igra[]=array(1,7.....................
  $igra[]=array(5,4...................
  $igra[]=array(4,2...................
  $igra[]=array(9,0.....................
  $igra[]=array(8,3.....................
  $igra[]=array(7,6....................
  $igra[]=array(3,8....................
  </code></pre>
  
  <p>where </p>
  
  <pre><code>`$igra[x][z]!=$igra[y][z]`   (x={0,9},y={0,9});
  </code></pre>
  
  <p>as you see it's like a matrix of numbers each row of it and column also consist from numbers 0-9, and there is never one number two times in each row or in each column. 
  how to generate such an array, and each time randomly. </p>