numpy generate matrix of random numbers code example Example: random matrix python np.random.rand(3,2)