LeviLamina
Loading...
Searching...
No Matches
Random Class Reference
+ Inheritance diagram for Random:

Public Types

using result_type = uint
 

Public Member Functions

virtual bool nextBoolean ()
 
virtual float nextFloat ()
 
virtual double nextDouble ()
 
virtual int nextInt ()
 
virtual int nextInt (int n)
 
virtual int64 nextLong ()
 
virtual double nextGaussianDouble ()
 
virtual void consumeCount (uint count)
 
virtual ::std::unique_ptr<::IRandomfork ()
 
MCAPI Random (uint seed, bool onlyUsedDeterministically)
 
MCAPI float nextFloat (float min, float max)
 
MCAPI int nextInt (int min, int max)
 
MCAPI int nextIntInclusive (int min, int max)
 
MCAPI void setSeed (uint seed)
 
MCAPI void * $ctor ()
 
MCAPI void * $ctor (uint seed, bool onlyUsedDeterministically)
 
MCAPI void $dtor ()
 
MCAPI bool $nextBoolean ()
 
MCAPI float $nextFloat ()
 
MCAPI double $nextDouble ()
 
MCAPI int $nextInt ()
 
MCAPI int $nextInt (int n)
 
MCAPI int64 $nextLong ()
 
MCAPI double $nextGaussianDouble ()
 
MCAPI void $consumeCount (uint count)
 
MCAPI ::std::unique_ptr<::IRandom$fork ()
 
virtual ::std::unique_ptr<::IPositionalRandomFactoryforkPositional ()
 
MCFOLD ::std::unique_ptr<::IPositionalRandomFactory$forkPositional ()
 
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)
 

Static Public Member Functions

static MCAPI ::RandomgetThreadLocal ()
 
static MCAPI ::Bedrock::Threading::ThreadLocalObject<::Random > & mThreadLocalRandom ()
 
static MCAPI void ** $vftableForEnableNonOwnerReferences ()
 
static MCAPI void ** $vftableForIRandom ()
 
static MCAPI void ** $vftable ()
 
static MCAPI void ** $vftable ()
 

Public Attributes

::ll::TypedStorage< 8, 2536, ::Bedrock::Application::ThreadOwner<::Core::Random > > mRandom
 
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlockmControlBlock
 

Member Function Documentation

◆ nextBoolean()

virtual bool Random::nextBoolean ( )
virtual

Implements IRandom.

◆ nextFloat()

virtual float Random::nextFloat ( )
virtual

Implements IRandom.

◆ nextDouble()

virtual double Random::nextDouble ( )
virtual

Implements IRandom.

◆ nextInt() [1/2]

virtual int Random::nextInt ( )
virtual

Implements IRandom.

◆ nextInt() [2/2]

virtual int Random::nextInt ( int n)
virtual

Implements IRandom.

◆ nextLong()

virtual int64 Random::nextLong ( )
virtual

Implements IRandom.

◆ nextGaussianDouble()

virtual double Random::nextGaussianDouble ( )
virtual

Implements IRandom.

◆ consumeCount()

virtual void Random::consumeCount ( uint count)
virtual

Implements IRandom.

◆ fork()

virtual ::std::unique_ptr<::IRandom > Random::fork ( )
virtual

Implements IRandom.


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