I\'m using numpy to create a cube array with sides of length 100, thus containing 1 million entries total. For each of the million entries, I am inserting a 100x100 matrix w
for the "inner" part of your function, look at the numpy.random module
import numpy as np matrix = np.random.random((100,100))*100