random.hh File Reference

Definition of random generators. More...

Include dependency graph for random.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  utility
namespace  utility::random

Small alphabetic letters random generation tools.

typedef vcsn::algebra::static_char_interval<
'a', 'z'> 
utility::random::small_alpha_interval_t
typedef vcsn::algebra::static_ranged<
char, small_alpha_interval_t
utility::random::small_alpha_letter_t
template<>
small_alpha_letter_t utility::random::generate< small_alpha_letter_t > ()
 Generates a random small alphabetic letter.

Functions

template<typename T>
utility::random::generate ()
 Generate a random value.
template<typename T>
utility::random::generate (T min, T max)
 Generate a random value between bounds.
template<>
char utility::random::generate< char > ()
 Generate a random character.
template<>
char utility::random::generate< char > (char min, char max)
 Generate a random character between bounds.
char utility::random::generate_letter ()
 Generate a random lowercase letter.
char utility::random::generate_digit ()
 Generate a random digit.
template<>
bool utility::random::generate< bool > ()
 Generate a random Boolean.
template<>
int utility::random::generate< int > ()
 Generate a random integer.
template<>
int utility::random::generate< int > (int min, int max)
 Generate a random integer between two bounds.
template<>
unsigned utility::random::generate< unsigned > ()
 Generate a random unsigned integer.
template<>
unsigned utility::random::generate< unsigned > (unsigned min, unsigned max)
 Generate a random unsigned between two bounds.
template<>
float utility::random::generate< float > ()
 Generate a random float between -2 and 2.
template<>
float utility::random::generate< float > (float min, float max)
 Generate a random float between min and max.
template<>
double utility::random::generate< double > ()
 Generate a random double between -2 and 2.
template<>
double utility::random::generate< double > (double min, double max)
 Generate a random double between min and max.
template<class InputIterator, class OutputIterator>
void utility::random::sample_n (InputIterator first, InputIterator end, OutputIterator out, unsigned n)
 Generate of n sample from a range to an output iterator.
template<>
vcsn::algebra::RationalNumber utility::random::generate< vcsn::algebra::RationalNumber > ()
 Generate a random rational number.
template<>
vcsn::algebra::RationalNumber utility::random::generate< vcsn::algebra::RationalNumber > (const vcsn::algebra::RationalNumber min, const vcsn::algebra::RationalNumber max)
 Generates a bounded random rational number.
template<>
std::pair< char, int > utility::random::generate< std::pair< char, int > > ()
 Generate a random std::pair<char, int>.


Detailed Description

Definition of random generators.

Definition in file random.hh.


Generated on Fri Jul 28 12:28:43 2006 for Vaucanson by  doxygen 1.4.6