Is there a more general form for the answer to this [question][1] where a random number within any range can be generated from a source with any range, while preserving uniform distribution? [This][2] question for example looks familiar and is changing a range of 1-5 to 1-7 [1]: https://math.stackexchange.com/q/1314460/438622 [2]: https://stackoverflow.com/q/137783/866502