Forums

10*10 matrix with random numbers. All random numbers are between 0-100.

anybody?

Come on, Google probably knows this one: Here are two smaller examples for display purposes:

import numpy
print(100*numpy.random.rand(3,3))

Out[9]: array([[ 29.40509203, 44.84546058, 70.99979354], [ 80.79359813, 51.20042882, 63.4544441 ], [ 33.82801811, 22.22723948, 71.03999624]])

And if you want integers:

print(numpy.random.randint(0,100,(3,3)))

Out[10]: array([[48, 42, 49], [37, 18, 10], [78, 1, 16]])