title: Algorithm which creates all possible Latin squares
body: <p>I need help with algorithm, which creates all Latin squares up to n=10. I am in the point, when i have created n! Latin squares and I have tried to permute rows and columns afterwards, so it gave me n!*n!*n! Latin squares, but according to wikipedia(<a href="https://en.wikipedia.org/wiki/Latin_square" rel="nofollow">https://en.wikipedia.org/wiki/Latin_square</a>) this extension of n! Latin squares is wrong. Don't have anyone any idea how to get all possible Latin Squares?</p>