Generate random value with a distance between them

gutbag:
Personally, I would avoid repeated calls to random - you can't predict how many times you'll have to call it. I would just call it once and map the value to a range that starts 50 away from the first one.

How would you map a value to a number that is at least 50 higher or 50 lower than the first number?

Steve