import numpy as np n = 2 m = 3 print(np.random.randn(n, m)) # prints random matrix with n rows and m columns # example: # array([[ 1.01267696, -1.85632995, 0.23078345], # [ 0.34365521, -1.27063438, 2.90131288]])