If we make a table such that each column contains numbers modulo $m$ and each row containing numbers modulo $n$. Let us denote the element $a_{ij}=x$ and $a_{i'j'}=y$ Where $0\leq i,i'<m$ and $0\leq j,j'<n$. $$x\equiv i \quad(mod \;m)$$ $$x\equiv j \quad(mod \;n)$$ $$y\equiv i' \quad(mod \;m)$$ $$y\equiv j' \quad(mod \;n)$$
This is essentially how I translate a program i wrote to generate those tables and it works fine. (loop over every number, then decide its indices). I am now trying to show that no two numbers in the table are same (which is so if $m,n$ are coprime)
Start by supposing that $x=y$ then, $$i\equiv i' \quad(mod \;m)$$ $$j\equiv j' \quad(mod \;n)$$
But because $0\leq i,i'<m$ and $0\leq j,j'<n$, we have $i=i'$ and $j=j'$. Hence no two numbers in this table are the same.
However, there has to be a mistake here as I never took into account $m$ and $n$ to be coprime.