Class Rng
Conveniently wrapped ThreadLocal<Random> class.
Inheritance
object
System.Random
Rng
Inherited Members
System.Random.Sample()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Services
Syntax
public class Rng : Random
Constructors
Rng()
Declaration
public Rng()
Rng(Guid)
Declaration
public Rng(Guid seed)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | seed |
Rng(int)
Declaration
public Rng(int seed)
Parameters
Type | Name | Description |
---|---|---|
int | seed |
Properties
InnerRng
Declaration
public Rng InnerRng { get; }
Property Value
Type | Description |
---|---|
Rng |
Methods
Next()
Declaration
public override int Next()
Returns
Type | Description |
---|---|
int |
Overrides
System.Random.Next()
Next(int, int)
Declaration
public override int Next(int minValue, int maxValue)
Parameters
Type | Name | Description |
---|---|---|
int | minValue | |
int | maxValue |
Returns
Type | Description |
---|---|
int |
Overrides
System.Random.Next(int, int)
Next(int)
Declaration
public override int Next(int maxValue)
Parameters
Type | Name | Description |
---|---|---|
int | maxValue |
Returns
Type | Description |
---|---|
int |
Overrides
System.Random.Next(int)
NextBytes(byte[])
Declaration
public override void NextBytes(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
byte[] | buffer |
Overrides
System.Random.NextBytes(byte[])
NextDouble()
Declaration
public override double NextDouble()
Returns
Type | Description |
---|---|
double |
Overrides
System.Random.NextDouble()