Given $X$ a random variable with a normal distribution, what is the best procedure to simulate $X|X\in[a;b]\cup[c;d]$, i.e. we want to simulate the truncated normal distribution only on the intervals $[a;b]$ or $[c;d]$.
I have already seen a question asked on this forum in Truncated normal distribution over a union of intervals, but the answer gives no indication of how to simulate a sample of this law.