I have the following array:
myArray1 = np.array([[255, 255, 255, 1, 1, 255, 255, 255],
[255, 1, 1, 1, 1, 1, 255, 255]])
I want to create a new array myArray2 based on myArray1. Where myArray1 has a value of 1, I want to replace the value by numpy.random.normal(loc=40, scale=10).
How can I do that?