---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-383b4abc66c8> in <module>()
1 import numpy as np
2 a = np.zeros((5,4))
----> 3 np.random.rand(a.shape)<0.5
mtrand.pyx in mtrand.RandomState.rand (numpy/random/mtrand/mtrand.c:13297)()
mtrand.pyx in mtrand.RandomState.random_sample (numpy/random/mtrand/mtrand.c:10063)()
mtrand.pyx in mtrand.cont0_array (numpy/random/mtrand/mtrand.c:1812)()
TypeError: an integer is required