English

Bit recycling for scaling random number generators

Information Theory 2018-09-28 v2 math.IT Numerical Analysis Probability

Abstract

Many Random Number Generators (RNG) are available nowadays; they are divided in two categories, hardware RNG, that provide "true" random numbers, and algorithmic RNG, that generate pseudo random numbers (PRNG). Both types usually generate random numbers (Xn)(X_n) as independent uniform samples in a range 0,,2b10,\cdots,2^{b-1}, with b=8,16,32b = 8, 16, 32 or b=64b = 64. In applications, it is instead sometimes desirable to draw random numbers as independent uniform samples (Yn)(Y_n) in a range 1,,M1, \cdots, M, where moreover M may change between drawings. Transforming the sequence (Xn)(X_n) to (Yn)(Y_n) is sometimes known as scaling. We discuss different methods for scaling the RNG, both in term of mathematical efficiency and of computational speed.

Keywords

Cite

@article{arxiv.1012.4290,
  title  = {Bit recycling for scaling random number generators},
  author = {Andrea C. G. Mennucci},
  journal= {arXiv preprint arXiv:1012.4290},
  year   = {2018}
}
R2 v1 2026-06-21T17:01:27.793Z