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: 2022.1.1.0 (2022.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 methodStatic memberGenerate(Byte)
Public methodStatic memberGenerate(Double, Double)
Public methodStatic memberGenerate(Int32, Int32)
Public methodStatic memberGenerate(Single, Single)
Public methodStatic memberGenerate(Angles, Angles)
Public methodStatic memberGenerate(AnglesF, AnglesF)
Public methodStatic memberGenerate(ColorValue, ColorValue)
Public methodStatic memberGenerate(Degree, Degree)
Public methodStatic memberGenerate(DegreeF, DegreeF)
Public methodStatic memberGenerate(Radian, Radian)
Public methodStatic memberGenerate(RadianF, RadianF)
Public methodStatic memberGenerate(Vector2, Vector2)
Public methodStatic memberGenerate(Vector2F, Vector2F)
Public methodStatic memberGenerate(Vector2I, Vector2I)
Public methodStatic memberGenerate(Vector3, Vector3)
Public methodStatic memberGenerate(Vector3F, Vector3F)
Public methodStatic memberGenerate(Vector3I, Vector3I)
Public methodStatic memberGenerate(Vector4, Vector4)
Public methodStatic memberGenerate(Vector4F, Vector4F)
Public methodStatic memberGenerate(Vector4I, Vector4I)
Public methodStatic memberGenerateBoolean
Public methodStatic memberGenerateDouble
Public methodStatic memberGenerateFloat
Public methodStatic memberGenerateInteger
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