This function returns a random, squared matrix of dimension `dim`

that fulfills the properties of a transition probability matrix.

## Arguments

- dim
An `integer`

, the matrix dimension.

## Value

A transition probability `matrix`

.

## Examples

```
if (FALSE) {
sample_tpm(dim = 3)
}
```