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
System.Object
  System.Random
    Orthogonal.Common.Basic.PRNG.RandCustomBase
      More

Namespace: Orthogonal.Common.Basic.PRNG
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2025-03-15 14:42 GMT+11
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 Random.Next())
Public methodNext(Int32, Int32) Returns a random integer that is within a specified range.
(Overrides Random.Next(Int32, Int32))
Public methodNextBytes Fills the elements of a specified array of bytes with random numbers.
(Overrides Random.NextBytes(Byte[]))
Public methodNextInt64 Returns a non-negative random integer.
Top
See Also
Inheritance Hierarchy