Random::gaussianGeneratorOp< T > Class Template Reference

A generator class returning a gaussian distributed random number. More...

Public Member Functions

 gaussianGeneratorOp (const label seed=Random::defaultSeed)
 Default construct or with seed value. Uses default [0,1] interval. More...
 
T operator() ()
 Generate a random number. More...
 
template<class U >
T operator() (const U &) const
 

Detailed Description

template<class T>
class Foam::Random::gaussianGeneratorOp< T >

A generator class returning a gaussian distributed random number.

See also
std::generate()

Definition at line 89 of file Random.H.

Constructor & Destructor Documentation

◆ gaussianGeneratorOp()

gaussianGeneratorOp ( const label  seed = Random::defaultSeed)
inlineexplicit

Default construct or with seed value. Uses default [0,1] interval.

Definition at line 306 of file Random.H.

Member Function Documentation

◆ operator()() [1/2]

T operator() ( )
inline

Generate a random number.

Definition at line 315 of file Random.H.

◆ operator()() [2/2]

T operator() ( const U ) const
inline

Ignore parameter and generate a random number, which allows it to be used as a replacement for general unary operators.

Definition at line 323 of file Random.H.


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