#include <c4d_tools.h>
A class to generate random number sequences.
Uniform and Gaussian deviates can be generated. 
Public Member Functions | |
| Random () | |
| void | Init (UInt32 s) | 
| MAXON_ATTRIBUTE_FORCE_INLINE Float | Get01 () | 
| MAXON_ATTRIBUTE_FORCE_INLINE Float | Get11 () | 
| Float | GetG01 () | 
| Float | GetG11 () | 
| Int32 | GetSeed () const | 
Private Attributes | |
| UInt32 | seed | 
| Int32 | iset | 
| Float | gset | 
| Random | ( | ) | 
Default constructor.
| void Init | ( | UInt32 | s | ) | 
Initializes the random number sequence from a starting seed. Each seed will give a different sequence of random numbers.
| [in] | s | The initial seed to start the random number sequence. | 
| MAXON_ATTRIBUTE_FORCE_INLINE Float Get01 | ( | ) | 
Gets a random value between 0 and 1.
| MAXON_ATTRIBUTE_FORCE_INLINE Float Get11 | ( | ) | 
Gets a random value between -1 and +1.
| Float GetG01 | ( | ) | 
Gets a random value between 0 and 1 with Gaussian distribution.
| Float GetG11 | ( | ) | 
Gets a random value between -1 and +1 with Gaussian distribution.
| Int32 GetSeed | ( | ) | const | 
Gets the seed representing the current state of the random number generator.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |