Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

utility::random Namespace Reference

the namespace for the random generation tools. More...


Functions

template<typename T> T generate ()
 Generate a random value.

template<typename T> T generate (T min, T max)
 Generate a random value between bounds. More...

template<> char generate< char > ()
 Generate a random character.

template<> char generate< char > (char min, char max)
 Generate a random character between bounds.

char generate_letter ()
 Generate a random lowercase letter.

char generate_digit ()
 Generate a random digit.

template<> bool generate< bool > ()
 Generate a random Boolean.

template<> int generate< int > ()
 Generate a random integer.

template<> int generate< int > (int min, int max)
 Generate a random integer between two bounds.

template<> float generate< float > ()
 Generate a random float between 0 and 1.


Detailed Description

the namespace for the random generation tools.
Generated on Wed Jul 2 19:09:10 2003 for Vaucanson by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002