Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a Procedure that generates a random matrix with natural numbers from 0 to 11 however the numbers cannot be repeated either horizontally or vertically (like sudoku but without the squares) the Procedure I made is this
https://prnt.sc/1k6f28x
If the preview is bad, I zoomed and divided it into 2 parts
https://prnt.sc/1k6gdj6
https://prnt.sc/1k6ia2w
When I test the procedure it locks the game, so I tested these two parts below separately in the procedure and noticed that they work one part generates an array in which the values are not repeated vertically and the other part horizontally without locking the game, the problem it only appears when I put the two together
https://prnt.sc/1k6ixod
https://prnt.sc/1k6kf4y
Solutions?
If it locks the game, it means one of your loops never finish due to unmet condition
But when I test the two parts separately works great, do you have another way to make this? (a math matrix, without numbers repeated horizontally or vertically)