Random sampling from a discrete interval is relatively simple. Here my code is Python, but also straightforward in R and others.
position = random.randint(1, 100)
I would like to introduce a small bias in the sampling so that it's slightly more likely to draw from the range
[75, 100]. My naive first attempt was as follows.
position = random.randint(1, 100 + 25) if position > 100: position -= 25
However this results in very elevated sampling at both ends of the interval. How would I 1) restrict the bias toward only one end of the interval; and 2) control the intensity of the bias?