Simulating measures