I want to put some random numbers (which have normal distribution) in a matrix of zeros with python. The place of inserting these random numbers also should be random and obey a specific probability measure (e.x.p=0.5). I can do that with for loop but I want to have an optimized way to increase complexity and time. Do you have any suggestions?
Aucun commentaire:
Enregistrer un commentaire