Samples an integer from the inclusive range [min, max]. Bounds and range width must be safe integers.