how to randomize the component values of the matrix in PYTHON
I have a matrix (3,3) like this:[[1, 0, 1]
[0, 1, 0]
[1, 1, 0]]
How can i random the value of position(2,2) with the range is around its current value( for example the value of (2,2)=1 and i want it to random in range 0 and 2.
Aucun commentaire:
Enregistrer un commentaire