RogueSharp
Show / Hide Table of Contents

Class RandomState

A class representing the state of a pseudo-random number generation algorithm at a point in time. This POCO (Plain Old C# Object) can be easily serialized and deserialized

Inheritance
System.Object
RandomState
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: RogueSharp.Random
Assembly: RogueSharp.dll
Syntax
public class RandomState

Properties

| Improve this Doc View Source

NumberGenerated

The number of times that the Next method has been called on the pseudo-random number generator being used

Declaration
public long NumberGenerated { get; set; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

Seed

The seed that was originally used to create the pseudo-random number generator

Declaration
public int[] Seed { get; set; }
Property Value
Type Description
System.Int32[]
Remarks

Most generators only use 1 seed, but some like the KnownSeriesRandom generator may use multiple seeds so that is why Seed is expressed as an array of integers here

  • Improve this Doc
  • View Source
RogueSharp © 2014-2020 Faron Bracy
Back to top