Generate random value with a distance between them

If it's higher but not high enough: add 50. If it's lower but not low enough: subtract 50. Apply limits as needed. Should be random enough for OPs application.