I want to generate a random covariance matrix ($c \in \mathcal{R}^{n \times n} $) whose eigenspectra, i.e., $n$ eigenvalues $e_0 \in \mathcal{R}^{n\times 1}$ and diagonal elements $c_{ii} \,\, i=1 \,\,... \, n $ and first off-diagonal elements $c_{i, i+1} \,\, i=1 \,\,... \, n-1 $are known.
And of course, the sum of diagonal elements should be equal to the sum of eigenvalues. Also, I would like the covariance matrices to be uniform distribution or as close to uniform as possible. Can this be done?