Open 3D Engine EMotionFX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
MCore::LcgRandom Class Reference

#include <Random.h>

Public Member Functions

 LcgRandom (AZ::u64 seed=1234)
 
void SetSeed (AZ::u64 seed)
 
AZ::u64 GetSeed () const
 
unsigned int GetRandom ()
 
float GetRandomFloat ()
 

Detailed Description

A very simple and fast LCG random number generator, useful if you need a fast pseudo-random sequence and don't really care about the quality of the sequence. This is similar to the SimpleLcgRandom class in AZ with a few modification.


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