rutz::urand Class Reference

Uniform random distribution. More...

#include <rutz/rand.h>

List of all members.

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[.


Detailed Description

Uniform random distribution.

Definition at line 65 of file rand.h.


The documentation for this class was generated from the following file:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:45 2008 by Doxygen version 1.5.5.