how to generate numpy array with 0 and 1 with random shape code example Example: random matrix python np.random.rand(3,2)