ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::math::uniform_distribution< ResultT > Class Template Reference

A uniform distribution of random numbers. More...

#include <random.hpp>

Public Member Functions

template<typename RandGeneratorType >
ResultT operator() (RandGeneratorType &gen, ResultT from, ResultT to)
 Returns a uniformly distributed pseudo-random number. More...
 

Detailed Description

template<typename ResultT = int>
class viennashe::math::uniform_distribution< ResultT >

A uniform distribution of random numbers.

Definition at line 160 of file random.hpp.

Member Function Documentation

◆ operator()()

template<typename ResultT = int>
template<typename RandGeneratorType >
ResultT viennashe::math::uniform_distribution< ResultT >::operator() ( RandGeneratorType &  gen,
ResultT  from,
ResultT  to 
)
inline

Returns a uniformly distributed pseudo-random number.

Parameters
genA random number generator implementing the concept of rand_generator_base
fromMinimum of the uniform distribution
toMaximum of the uniform distribution
Returns
Uniformly distributed random numbers

Definition at line 172 of file random.hpp.


The documentation for this class was generated from the following file: