jeudi 25 juin 2020

Will numpy random.randint with constant seed will stay the same over time, versions and platforms? [duplicate]

I'm using :

np.randim.seed(0); const_rand_arr = np.random.randint(LONG_INT)

In my code to perduce a constant random array.

I'm conserned that the array might change over future numpy versions or if I'll use the same code but on different machines or/ OS which will breake my software.

Is it even possible? Should I save the array to file and read it every time?

Any other recommendations for possible constant random arrays?

Thanks for the help!




Aucun commentaire:

Enregistrer un commentaire