I need to generate 3 discrete random variables whose sum is equal to a specified value (fixed) and is uniformly distributed, however each component of the sum has specified bounds. For example, $$ X_1 + X_2 + X_3 = S $$ where $a_1 \leq X_1 \leq b_1$, $a_2 \leq X_2 \leq b_2$, and $a_3 \leq X_3 \leq b_3$.
I found this Random Vectors with Fixed Sum, but it only allows a single bound to be given that then applies to all the $X$s.