|
void | set_seed (unsigned int seed) |
|
int | rnd_int (int lowerLimit, int upperLimit) |
|
float | rnd_flt (float min=0.0, float max=1.0) |
|
float | rnd_dbl (float min=0.0, float max=1.0) |
|
float | operator() (unsigned i) |
|
float | operator() () |
|
template<class RandomAccessIterator > |
void | shuffle (RandomAccessIterator first, RandomAccessIterator last) |
|
vector< size_t > | shuffled_index (size_t n) |
| returns a shuffled index vector of length n
|
|
template<typename Iter > |
Iter | select_randomly (Iter start, Iter end) |
|
template<typename Iter , typename Iter2 > |
Iter | select_randomly (Iter start, Iter end, Iter2 wstart, Iter2 wend) |
| select randomly with weighted distribution.
|
|
template<typename T > |
T | random_choice (const map< T, float > &m) |
|
template<class V , class T > |
T | random_choice (const V &v) |
|
template<template< class, class > class C, class T > |
T | random_choice (const C< T, std::allocator< T > > &v, const vector< float > &w) |
|
float | gasdev () |
|
Defines a multi-core random number generator and its operators.
Definition at line 28 of file rnd.h.