2019
DOI: 10.1145/3230636
|View full text |Cite
|
Sign up to set email alerts
|

Fast Random Integer Generation in an Interval

Abstract: In simulations, probabilistic algorithms and statistical tests, we often generate random integers in an interval (e.g., [0, s)). For example, random integers in an interval are essential to the Fisher-Yates random shuffle. Consequently, popular languages like Java, Python, C++, Swift and Go include ranged random integer generation functions as part of their runtime libraries.Pseudo-random values are usually generated in words of a fixed number of bits (e.g., 32 bits, 64 bits) using algorithms such as a linear … Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1

Citation Types

0
23
0
1

Year Published

2020
2020
2024
2024

Publication Types

Select...
5
2
1
1

Relationship

0
9

Authors

Journals

citations
Cited by 42 publications
(24 citation statements)
references
References 28 publications
0
23
0
1
Order By: Relevance
“…A future work will be the design in the hardware of DE, which should include the random number generator that can be optimized to use directly the generated bits without FP divisions, as is suggested in [10]. This idea of this design also could be used in software within each core of a GPGPU.…”
Section: Datamentioning
confidence: 99%
See 1 more Smart Citation
“…A future work will be the design in the hardware of DE, which should include the random number generator that can be optimized to use directly the generated bits without FP divisions, as is suggested in [10]. This idea of this design also could be used in software within each core of a GPGPU.…”
Section: Datamentioning
confidence: 99%
“…The DE in Algorithm 1 can be improved by using a random integer number generator as the one described in [10], which does not use divisions or FP numbers. This idea could improve the algorithm in line 6 (to generate three numbers in the interval [1, µ], and in line 7 where another random integer number is generated in the interval [1, n].…”
mentioning
confidence: 99%
“…The random generator used was the default used in the RBG system: std::mt19937 together with the Lemire's selection method (Lemire 2019;Kowalski et al 2020).…”
Section: Environmentmentioning
confidence: 99%
“…Further, an R-wrapper is available through GitHub. The tool leverages a PCG random number generator that provides a simple, fast, and space-efficient algorithm for generating random numbers with high statistical quality [16]. The tool uses a Monte Carlo approach for randomly generating somatic mutations while considering the observed frequency of a preselected reference genome.…”
Section: Tool Implementationmentioning
confidence: 99%