Click or drag to resize

FastRandom Class

Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet certain statistical requirements for randomness.
Inheritance Hierarchy
SystemObject
  NeoAxisFastRandom

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class FastRandom

The FastRandom type exposes the following members.

Constructors
  NameDescription
Public methodFastRandom
Initializes a new instance of the FastRandom class, using a time-dependent default seed value.
Public methodFastRandom(Int32, Boolean)
Initializes a new instance of the FastRandom class, using the specified seed value.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNext(Double)
Returns a random number between zero and max value.
Public methodNext(Int32)
Returns a nonnegative random number less or equal than the specified maximum.
Public methodNext(Single)
Returns a random number between zero and max value.
Public methodNext(Double, Double)
Returns a random number between min and max values.
Public methodNext(Int32, Int32)
Returns a random number within a specified range.
Public methodNext(Single, Single)
Returns a random number between min and max values.
Public methodNextBoolean
Returns a single random bit.
Public methodNextBytes
Fills the elements of a specified array of bytes with random numbers.
Public methodNextDouble
Returns a random number between 0.0 and 1.0.
Public methodNextFloat
Returns a random number between 0.0 and 1.0.
Public methodNextInteger
Returns a nonnegative random number.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
See Also