triqs::mc_tools::random_generator::operator()

#include <triqs/mc_tools/random_generator.hpp>

Synopsis

  1. template<typename T>
    typename std::enable_if<std::is_integral<T>::value, T>::type operator() (T i)
  2. double operator() (double x)
  3. double operator() (double a, double b)

Documentation

1) Returns a integer in [0,i-1] with flat distribution

2) Returns a double in [0,x[ with flat distribution

3) Returns a double in [a,b[ with flat distribution