Unknown * in numpy.random function
<p>I was studying <a href="http://cs231n.github.io/neural-networks-2/" rel="nofollow">this link</a> and this is the code .</p>

<pre><code> U1 = np.random.rand(*H1.shape) &lt; p # first dropout mask
</code></pre>

<p>Why does it fail when I try to do this?</p>

<pre><code>import numpy
numpy.random.rand(*1) &lt; 2 
</code></pre>

<p>I understand that the <code>rand()</code> function takes in a number which is why I am confused that the code is supposed to work.</p>