mardi 26 octobre 2021

How to specify array indexes to be randomized?

I have an initial combination randomizer, producing a randomized binary array.

np.random.binomial(1, 0.5, 20)

The question is - is there a way to specify indexes to be randomized within the array? perhaps anything from the numpy set of tools? or would that be a specified loop?




Aucun commentaire:

Enregistrer un commentaire