Click or drag to resize

IRandom Interface

An interface that defines the minimum functionality implemented by all library classes that are derived from the standard Random class. The .NET class does not implement an interface, but one was added for all derived classes in this library so they can be used interchangably and to simplify testing code.

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 interface IRandom

The IRandom type exposes the following members.

Methods
 NameDescription
Public methodNext Returns a non-negative random integer.
Public methodNext(Int32) Returns a non-negative random integer that is less than the specified maximum.
Public methodNext(Int32, Int32) Returns a random integer that is within a specified range.
Public methodNextBytes Fills the elements of a specified array of bytes with random numbers.
Public methodNextDouble Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
Public methodNextInt64 Returns a non-negative random integer.
Top
See Also