title: Simple way to create matrix of random numbers
body: <p>I am trying to create a matrix of random numbers, but my solution is too long and looks ugly</p>
  
  <pre><code>random_matrix = [[random.random() for e in range(2)] for e in range(3)]
  </code></pre>
  
  <p>this looks ok, but in my implementation it is</p>
  
  <pre><code>weights_h = [[random.random() for e in range(len(inputs[0]))] for e in range(hiden_neurons)]
  </code></pre>
  
  <p>which is extremely unreadable and does not fit on one line.</p>