I need to simulate 1000+ values of a variable whose outcome will be in a distinct range with a given probability. Something on the following lines:
Range Probability
3 - 10 0.2
40 - 80 0.4
120 - 170 0.2
200 - 225 0.15
260 - 300 0.05
Purpose of this is to see the variability of the outcome in a given range. How can I achieve the random numbers following the above pattern? Supporting R code or pointer will be a big help for me.
Thanks