MustarandSigmastar = Join[Mustar, VectorofSigmastar];
z = Table[
RandomVariate[
NormalDistribution[MustarandSigmastar[[i]],
MustarandSigmastar[[j]]], n], {i, 1, m}, {j, m + 1, 2m}];
How to generate only m pairs of parameters? Thanks
{first, 1+mth}, {second,2+mth}, etc
? Also, please fix your code by providing definitions for all symbols. Without this, we're left making our own test cases and guessing what those should be for your context. And speaking of test cases, sample inputs with expected outputs would make it even clearer what you're hoping to achieve. $\endgroup$