title: Game board with random game objects and difficulties
body: <p>I have a game board which I want to fill with random game objects.<br>
  Lets give them the values <code>1...6</code> in an <code>int[10][10]</code> array.</p>
  
  <p>The game should have different difficulties. The easier, the more of the same objects are allowed to be next to each other; the harder, the less of the same objects are next to each other (radius=2).</p>
  
  <p>Example:<br>
  Lets assume a medium difficulty. 40% of the objects around an object (radius=2) can be of the same type.</p>
  
  <pre><code> -000------
   00000-----
   00100-----
   00000-----
   -000------ 
  </code></pre>
  
  <p>Only 40% of the <code>0</code> are allowed to be of type <code>1</code>.</p>
  
  <p>How can I create such a random array? Or is there a better way to implement difficulty in this case?</p>