Click or drag to resize

RandCustomBase Class

An abstract base class for all custom random number generating classes in this library that are compatible with the standard Random class. Derived classes only need to override the SampleCore method and all other methods will have correct and expected behaviour. Other standard methods can be overridden by derived classes if they can implement their functionality in a superior or more efficient manner.
Inheritance Hierarchy
SystemObject
  SystemRandom
    Orthogonal.Common.Basic.PRNGRandCustomBase
      More

Namespace: Orthogonal.Common.Basic.PRNG
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public abstract class RandCustomBase : Random, 
	IRandom

The RandCustomBase type exposes the following members.

Methods
 NameDescription
Public methodNext Returns a non-negative random integer.
(Overrides RandomNext)
Public methodNext(Int32, Int32) Returns a random integer that is within a specified range.
(Overrides RandomNext(Int32, Int32))
Public methodNextBytes Fills the elements of a specified array of bytes with random numbers.
(Overrides RandomNextBytes(Byte))
Public methodNextInt64 Returns a non-negative random integer.
Top
See Also
Inheritance Hierarchy