Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Random Class Reference

Classes

struct  CompatPrng
 
class  ImplBase
 
class  Net5CompatDerivedImpl
 
class  Net5CompatSeedImpl
 
class  ThreadSafeRandom
 
class  XoshiroImpl
 

Public Member Functions

 Random ()
 
 Random (int Seed)
 
virtual int Next ()
 
virtual int Next (int maxValue)
 
virtual int Next (int minValue, int maxValue)
 
virtual long NextInt64 ()
 
virtual long NextInt64 (long maxValue)
 
virtual long NextInt64 (long minValue, long maxValue)
 
virtual float NextSingle ()
 
virtual double NextDouble ()
 
virtual void NextBytes (byte[] buffer)
 
virtual void NextBytes (Span< byte > buffer)
 

Protected Member Functions

 Random (bool isThreadSafeRandom)
 
virtual double Sample ()
 

Properties

static Random Shared = new ThreadSafeRandom() [get]
 

Static Private Member Functions

static void ThrowMaxValueMustBeNonNegative ()
 
static void ThrowMinMaxValueSwapped ()
 

Private Attributes

readonly ImplBase _impl
 

Detailed Description

Definition at line 8 of file Random.cs.


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