vSMC
vSMC: Scalable Monte Carlo
Uniform real distribution

Functions

<FT> u01_<bound>_<bound>_<W>_<F> (uint<W>_t);

where <bound> is either open or closed.

For example, to generate uniform random variates on (0, 1],

Macros

U01_<BOUND>_<BOUND>_<W>

where <BOUND> is either OPEN or CLOSED.

Examples

#define VSMC_HAS_OPENCL_DOUBLE 1
#include <vsmc/rng/u01.h>