mardi 28 juillet 2015

Numpy array filled with random numbers so that you only change the value by one along the x/y axis

I know how to create a numpy array filled with random numbers, for instance, this : np.random.randint(0, 100, (5, 5)).

But how do you create a numpy array filled with random numbers so that the difference between two adjacent cells is 1 or less ?

Thanks




Aucun commentaire:

Enregistrer un commentaire