This function returns a random, squared matrix of dimension dim
that fulfills the properties of a transition probability matrix.
This function returns a random, squared matrix of dimension dim
that fulfills the properties of a transition probability matrix.