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