Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
USquirrel13_RNG Class Reference

Random number generator. Seedable. Gives better random values than epic generator. More...

#include <SquirrelRNG.h>

Inheritance diagram for USquirrel13_RNG:

Public Member Functions

void InitBP (int seed, int position=0)
 Modify internal values to custom.
int GetNextInt (int min, int max)
 Move position by 1 and return random value as integer in range <min, max>.
int GetCurrentInt (int min, int max) const
 Return random value scaled to integer range <min, max> at current position.
double GetNextDouble ()
 Move position by 1 and return double in range <0, 1>.
double GetCurrentDouble () const
 Return last random double in range <0, 1>.
void SetPosition (int new_position)
 Set generator position.
void IncrementPosition (int offset=1)
 Offset generator position.
void SetSeed (int new_seed)
 Set seed noise seed.
void SetNoiseVariant (int newVariant=0)
 Internal noise variants (it is not initialized), default=0, max=3.
void ResetSeedPos ()
 Reset to internal initial values.
virtual void Serialize (FArchive &Ar) override
 Serialization of RNG Object.

Detailed Description

Random number generator. Seedable. Gives better random values than epic generator.

Member Function Documentation

◆ InitBP()

void USquirrel13_RNG::InitBP ( int seed,
int position = 0 )

Modify internal values to custom.

This function provides access to change private variables for C++ object which is not accessible in Blueprints.


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