I am wondering if exist an efficient computational method for sampling points belonging to the surface of an ellipsoid in $n$-dimensional space with n even, I am thinking in the phase space of a system with $f$-degrees of freedom that have dimensionality $2f,$ the aim is picking phase-space points that have the same total energy. Thanks in advance.
EDIT: OK, perhaps thinking in a phase space states with energy $E = T(p) +V(q),$ one can pick at random $q$ which energy is less or equal than $E,$ if the energy is less than $E$ the remaining momentum can be picked from the ball $T(p)=cte$. But this is not a satisfactory answer to the question I did. Is this approach correct? How to do it efficiently using a computer?