English

An Efficient Method To Generate A Discrete Uniform Distribution Using A Biased Random Source

Probability 2023-01-18 v3

Abstract

This article presents an efficient algorithm to generate a discrete uniform distribution on a set of pp elements using a biased random source for pp prime. The algorithm generalizes Von Neumann's method and improves computational efficiency of Dijkstra's method. In addition, the algorithm is extended to generate discrete uniform distribution on any finite set based on the prime factorization of integers. The time complexity of the proposed algorithm is overall sublinear O(n/logn)\operatorname{O}(n/\log n)

Keywords

Cite

@article{arxiv.2205.01664,
  title  = {An Efficient Method To Generate A Discrete Uniform Distribution Using A Biased Random Source},
  author = {Xiaoyu Lei},
  journal= {arXiv preprint arXiv:2205.01664},
  year   = {2023}
}
R2 v1 2026-06-24T11:06:12.410Z