HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_MersenneTwister Class Reference

#include <UT_MTwister.h>

Public Member Functions

 UT_MersenneTwister (uint seed=5489U)
 
void setSeed (uint seed)
 
void setSeed (const uint key[], uint klength)
 
void save (std::ostream &os, bool binary) const
 
bool load (UT_IStream &is)
 
uint urandom ()
 
fpreal32 frandom ()
 
fpreal32 frandom0 ()
 

Detailed Description

Examples:
RAY/RAY_DemoGT.C.

Definition at line 28 of file UT_MTwister.h.

Constructor & Destructor Documentation

UT_MersenneTwister::UT_MersenneTwister ( uint  seed = 5489U)
inline

Definition at line 30 of file UT_MTwister.h.

Member Function Documentation

fpreal32 UT_MersenneTwister::frandom ( )
inline
Examples:
RAY/RAY_DemoGT.C.

Definition at line 63 of file UT_MTwister.h.

fpreal32 UT_MersenneTwister::frandom0 ( )
inline

Definition at line 70 of file UT_MTwister.h.

bool UT_MersenneTwister::load ( UT_IStream is)
void UT_MersenneTwister::save ( std::ostream &  os,
bool  binary 
) const
void UT_MersenneTwister::setSeed ( uint  seed)
void UT_MersenneTwister::setSeed ( const uint  key[],
uint  klength 
)
uint UT_MersenneTwister::urandom ( )
inline

Definition at line 43 of file UT_MTwister.h.


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