4
votes
0answers
175 views

Generating random matrices with specific equality constraints

Suppose I want to generate a nonnegative $n \times n$ matrix $\mathbf A$ for an odd $n$ (say, $n=5$ for a good enough example), such that the individual elements are drawn from a uniform ...