Source Coding for Synthesizing Correlated Randomness