G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FRandomStream Struct Reference

Thread-safe random number generator that can be manually seeded. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\RandomStream.h. More...

Public Member Functions

Functions
int RandRange (int Min, int Max) const
void Initialize (uint InSeed)
void Reset () const
int GetInitialSeed () const
void GenerateNewSeed ()
float32 GetFraction () const
uint GetUnsignedInt () const
int GetCurrentSeed () const
void Initialize (int InSeed)
float RandRange (float Min, float Max) const
void Initialize (FName InName)
FVector GetUnitVector () const
FVector VRand () const
FVector VRandCone (FVector Dir, float32 ConeHalfAngleRad) const
FVector VRandCone (FVector Dir, float32 HorizontalConeHalfAngleRad, float32 VerticalConeHalfAngleRad) const
FString ToString () const

Public Attributes

Variables
const float32 Fraction
const uint UnsignedInt
const int CurrentSeed
const FVector UnitVector
const int InitialSeed

Detailed Description

Thread-safe random number generator that can be manually seeded. @note The full C++ class is located here: Engine\Source\Runtime\Core\Public\Math\RandomStream.h.

Member Function Documentation

◆ GenerateNewSeed()

void GenerateNewSeed ( )

◆ GetCurrentSeed()

int GetCurrentSeed ( ) const

◆ GetFraction()

float32 GetFraction ( ) const

◆ GetInitialSeed()

int GetInitialSeed ( ) const

◆ GetUnitVector()

FVector GetUnitVector ( ) const

◆ GetUnsignedInt()

uint GetUnsignedInt ( ) const

◆ Initialize() [1/3]

void Initialize ( FName InName)

◆ Initialize() [2/3]

void Initialize ( int InSeed)

◆ Initialize() [3/3]

void Initialize ( uint InSeed)

◆ RandRange() [1/2]

float RandRange ( float Min,
float Max ) const

◆ RandRange() [2/2]

int RandRange ( int Min,
int Max ) const

◆ Reset()

void Reset ( ) const

◆ ToString()

FString ToString ( ) const

◆ VRand()

FVector VRand ( ) const

◆ VRandCone() [1/2]

FVector VRandCone ( FVector Dir,
float32 ConeHalfAngleRad ) const

◆ VRandCone() [2/2]

FVector VRandCone ( FVector Dir,
float32 HorizontalConeHalfAngleRad,
float32 VerticalConeHalfAngleRad ) const

Member Data Documentation

◆ CurrentSeed

const int CurrentSeed

◆ Fraction

const float32 Fraction

◆ InitialSeed

const int InitialSeed

◆ UnitVector

const FVector UnitVector

◆ UnsignedInt

const uint UnsignedInt