Jacques Heunis · Nov 21, 2021
Generating integers uniformly distributed over an range
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
You may have seen that there was recently a submission to the Swift language’s standard library with an interesting title: “ An optimal algorithm for bounded random integers ” by Stephen Canon. I found the idea intriguing and this post is a summary of my little expedition into the world of bounded pseudorandom integer generation.
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.