Random number generators discussion

Random number generators | www.agner.org

fast nonuniform binary random sequence?
Author: Agner Date: 2011-05-09 05:14
What you need is called the Bernoulli distribution. It is generated simply by
x = r < p;
where r is a uniform random number in 0 <= r < 1, and p is the probability parameter.
It is included in my non-uniform generators package.
 
thread fast nonuniform binary random sequence? new - Roy - 2011-05-08
last reply fast nonuniform binary random sequence? - Agner - 2011-05-09