Lemire’s algorithm is a state of the art (as of 2024) for generating uniformly distributed random integers in an interval

To transform from to , we need to add to the result and pick