Batched Ranged Random Integer Generation Article Swipe
Related Concepts
Nevin Brackett-Rozinsky
,
Daniel Lemire
·
YOU?
·
· 2024
· Open Access
·
· DOI: https://doi.org/10.22541/au.172477347.74689772/v1
· OA: W4401908847
YOU?
·
· 2024
· Open Access
·
· DOI: https://doi.org/10.22541/au.172477347.74689772/v1
· OA: W4401908847
Pseudorandom values are often generated as 64-bit binary words.These random words need to be converted into ranged values without statistical bias.We present an efficient algorithm to generate multiple independent uniformly-random bounded integers from a single uniformly-random binary word, without any bias.In the common case, our method uses one multiplication and no division operations per value produced.In practice, our algorithm can triple the speed of unbiased random shuffling for small to moderately large arrays.
Related Topics
Finding more related topics…