Let $X \subset \mathbb{Z}^6$ be the set of all $(a_1, a_2, a_3, a_4, a_5, a_6)$ with all $0 \leq a_i \leq 63$ and $\sum a_i \leq 127$. The constants $63, 127$ are mostly arbitrary.
I am trying to come up with a fast method to sample this space uniformly. I have tried multiple schemes but my intuition and sample histograms tell me I haven't got it
My latest thought was taking an in progress selection, say $(a_1, a_2)$, and selecting $a_3$ from the suitable integer range, and selecting in proportion to the number of points of $X$ that start with $(a_1, a_2, a_3...$. But calculating this on the fly is difficult. The upper bounds on the $a_i$ make a closed form difficult to reach