Generate a random n-dimensional array of float numbers


Topic: Generate a random n-dimensional array of float numbers

Solution

import numpy
random_float_array = numpy.random.rand(2, 2)
print("2 X 2 random float array in [0.0, 1.0] \n", random_float_array,"\n")



List all Python Programs