title: Generate 100 random numbers such that only 25 out of 100 numbers will be greater than 0.(remaining will be 0)
body: <p>This is the code to print 100 random numbers in a 2-d grid.</p>
  
  <pre><code>[[random.randint(1,25) for i in range(10)] for j in range(10)]
  </code></pre>
  
  <p>How do I print the random numbers such that out of 100 randomly printed numbers, only 25 will be of value greater than 0 ? Remaining all 75 numbers should be 0, in random positions of the grid.</p>
  
  <p>The is what I meant. For example lets consider, a 5 * 5 table where only 12 numbers are allowed to be greater than 0. Remaining all(13) numbers should be 0. The numbers should be  generated randomly and in random positions. </p>
  
  <pre><code>[[ 1, 0, 7, 0, 0],
   [5, 9 , 0 , 0 , 2]
   [3, 0 , 0 , 6, 0]
   [11, 7, 0 , 3, 0]
   [0, 0, 3,  9, 0]]
  </code></pre>