I have an array that I have saved it in the MC variable:
with open(PATH_FICHERO1, newline='', encoding='latin-1') as csvfile:
data = list(csv.reader(csvfile))
MC=numpy.array([numpy.array(datai) for datai in data])
type(MC)
print(MC)
In the case that there is a letter B I want to change the value for a random value that is between 1/3 and 1. Applying the following code does not give me an error, nevertheless when viewing the matrix the random values are always the same .
B= np.random.uniform(1/3,2/3)
MC = np.where( MC == 'B',B , MC)
print(B)
print(MC)
The values should be the same, in the case of B it is generated randomly but then I don't know why it is not applied in the matrix.

