Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy random matrix

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]])
Source by www.studytonight.com #
 
PREVIOUS NEXT
Tagged: #numpy #random #matrix
ADD COMMENT
Topic
Name
4+8 =