lundi 19 février 2018

Alternative to random_integers in NumPy

I wanted to create a random (x,y) matrix with a random range of int values, so naturally i did this:

B = numpy.random.random_integers(2,9,(2,4))

However this resulted in A DeprecationgWarning, from what i've seen, this means the method might not work in future realeses. How can i have the same result without resorting to .random_intergers() ?




Aucun commentaire:

Enregistrer un commentaire