#include <rutz/rand.h>
Public Member Functions | |
urand (long s=0) | |
void | seed (long s) |
double | fdraw () |
Uniform random distribution in the interval [0.0:1.0[. | |
double | fdraw_range (double min, double max) |
Uniform random distribution in the interval [min:max[. | |
bool | booldraw () |
Uniform random distribution between true:false. | |
int | idraw (int n) |
Uniform random distribution in the interval [0:n[. | |
int | idraw_range (int lo, int hi) |
Uniform random distribution in the interval [lo:hi[. | |
int | operator() (int n) |
Uniform random distribution in the interval [0:n[. |
Definition at line 65 of file rand.h.