/disk4/html/www/moses/doxygen/mosesdecoder/util/random.hh File Reference

#include <cstdlib>
#include <limits>

Go to the source code of this file.


Classes

struct  util::internal::random_scaler< T, true >
 Specialized random_scaler for integral types. More...
struct  util::internal::random_scaler< T, false >
 Specialized random_scaler for non-integral types. More...
struct  util::internal::wide_random_collector< T, remaining_ints >
 Helper for filling a wider variable with random ints. More...
struct  util::internal::wide_random_collector< T, 1 >
 Specialized wide_random_collector for generating just a single int. More...

Namespaces

namespace  util
namespace  util::internal
 Implementation detail. For the random module's internal use only.

Functions

void util::rand_init (unsigned int seed)
void util::rand_init ()
template<typename T >
T util::rand ()
template<typename T >
T util::rand_excl (T bottom, T top)
template<typename T >
T util::rand_excl (T top)
template<typename T >
T util::rand_incl (T bottom, T top)
template<typename T >
T util::rand_incl (T top)
template<typename T >
T util::wide_rand ()
template<typename T >
T util::wide_rand_excl (T top)
template<typename T >
T util::wide_rand_excl (T bottom, T top)
template<typename T >
T util::wide_rand_incl (T top)
template<typename T >
T util::wide_rand_incl (T bottom, T top)
int util::internal::rand_int ()
 The central call to the randomizer upon which this whole module is built.


Generated on Thu Jul 6 00:31:41 2017 for Moses by  doxygen 1.5.9