Assume I have a some mixture distribution, $H$, with mean $\mu$ and variance $\sigma^2$. $H$ is a mixture of $n$ component distributions where all component weights are equal. Let $\mu_i$ be the mean of component distribution $H_i$ and $\sigma^2_i$ the variance of component distribution $H_i$.
Let $X$ be a random variable drawn from $H$. We then know that:
$$\text{E}[X]=\mu=\sum_{i=1}^n\frac{1}{n}\mu_i$$ and $$\text{E}[(X-\mu)^2]=\sigma^2=\sum_{i=1}^n[\frac{1}{n}(\mu_i^2+\sigma^2_i)]-\mu^2$$
Given the parameters $\mu$ and $\sigma^2$, is there a way to randomly sample a set of $\mu_i$ and $\sigma_i^2$ for each of the $n$ component distributions such that the above two constraints are met?
Sampling a set of means such that the first constraint is met is trivial, however, how to simultaneously sample the means and variances of all components to meet both constraints is not obvious to me.