Batched Ranged Random Integer Generation
<|reference_start|>Batched Ranged Random Integer Generation: 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 more than double the speed of unbiased random shuffling for small to moderately large arrays.<|reference_end|>
@article{brackett-rozinsky2024batched,
    title={Batched Ranged Random Integer Generation},
    author={Nevin Brackett-Rozinsky and Daniel Lemire},
    journal={arXiv preprint arXiv:2408.06213},
    year={2024},
    doi={10.1002/spe3369},
    archivePrefix={arXiv},
    eprint={2408.06213},
    primaryClass={cs.DS}
}