EvolvingBehavior  0.2.0
 
Loading...
Searching...
No Matches
URandomGen Class Reference

Provides an easy wrapper for random number generation. More...

#include <RandomGen.h>

Inheritance diagram for URandomGen:
UService ISaveable

Public Member Functions

void Seed ()
 
void Seed (int32 newSeed)
 
bool WithProbability (double probability)
 
void RegisterLifeCycle ()
 
void Save (USaveEvolvingBehavior *sg)
 
void Load (USaveEvolvingBehavior *sg)
 
int32_t UniformIntInRange (int32_t lower, int32_t upper)
 
double UniformRealInRange (double lower, double upper)
 
double GaussianReal (double mean, double stdDev)
 
template<typename KeyT , typename ValueT >
TPair< KeyT, ValueT > & RandomMapEntry (TMap< KeyT, ValueT > map)
 
void DataLoaded ()
 
virtual void DataLoaded_Implementation () override
 
void DataSaved ()
 
virtual void DataSaved_Implementation () override
 
- Public Member Functions inherited from UService
virtual void Init (UServiceInjector *injector)
 
- Public Member Functions inherited from ISaveable
void DataLoaded ()
 
void DataSaved ()
 

Additional Inherited Members

- Protected Attributes inherited from UService
UServiceInjectorserviceInjector
 

Detailed Description

Provides an easy wrapper for random number generation.

Author
npc
Date
12/12/17

The documentation for this class was generated from the following files:
  • Source/EvolvingBehavior/Public/RandomGen.h
  • Source/EvolvingBehavior/Private/RandomGen.cpp