I have to fill a matrix with random numbers 0 or 1, but if a cell contains 1, the other 8 around it must be 0. As a beginner, I tried to implement my code in this way: