Uniform Distribution

if

  • .

This distribution may seem simple, but it has two important properties:

  1. Gateway to more complex Distribution
    1. You’ve seen this first-hand at Ericsson (more details below)
  2. Universality Property
    • Suppose is a r.v. with CDF . If we are interested in generating simulations of , i.e. we want to generate outcomes , we can generate the following: , where

Ericsson: Generating Random Uniform Distributions

This was a tough problem that I faced when working at Ericsson. The built-in rand() function in C seemed to be too slow. However, the faster version using seeds really wasn’t good enough when I tried to use it in Thompson Sampling.

Actually, it seems that they are trying to implement a version of the xorshift. https://en.wikipedia.org/wiki/Xorshift

Let’s look into some alternatives: