Random 32 Class
Base class for random number generators that produce
random data in chunks of 32-bit words.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public abstract class Random32 : ExtendedRandom
- Inheritance
- Object → Random → ExtendedRandom → Random32
- Derived
Remarks
Use Random32 as the base class for pseudo-random number generator classes that produce random data in chunks of 32-bit words. Random32 overrides most of Random's members to use the values produced by the derived class.
Random32 is an abstract base class that cannot be instantiated.
Notes to inheritors If you inherit from this class, you must override the following member: NextUInt32().
Constructors
Random32 | Initializes a new instance of the Random32 class |
Methods
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Creates an array populated with items chosen at random from the provided set of choices. (Inherited from Random) |
Get | Creates an array populated with items chosen at random from the provided set of choices. (Inherited from Random) |
Get | Fills the elements of a specified span with items chosen at random from the provided set of choices. (Inherited from Random) |
Get |
Creates an array populated with items chosen at random
from the provided set of choices without replacement.
(Inherited from ExtendedRandom) |
Get |
Creates an array populated with items chosen at random
from the provided set of choices without replacement.
(Inherited from ExtendedRandom) |
Get |
Populates the specified span with items chosen at random
from the provided set of choices without replacement.
(Inherited from ExtendedRandom) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Next() | Returns a non-negative random integer. (Overrides Random.Next()) |
Next( | Returns a non-negative random integer that is less than the specified maximum. (Overrides Random.Next(Int32)) |
Next( | Returns a random integer that is within a specified range. (Overrides Random.Next(Int32, Int32)) |
Next | Fills the elements of a specified array of bytes with random numbers. (Inherited from ExtendedRandom) |
Next | Fills the elements of a specified span of bytes with random numbers. (Overrides Random.NextBytes(Span<Byte>)) |
Next | Fills the elements of a specified span of bytes with random numbers. |
Next | Fills the elements of a specified span of bytes with random numbers. |
Next |
Returns a random number between 0 and 1.
(Overrides Random.NextDouble()) |
Next | Returns a random number between 0 and 1. |
Next | Returns a non-negative random integer. (Overrides Random.NextInt64()) |
Next | Returns a non-negative random integer that is less than the specified maximum. (Overrides Random.NextInt64(Int64)) |
Next | Returns a random integer that is within a specified range. (Overrides Random.NextInt64(Int64, Int64)) |
Next | Returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0. (Overrides Random.NextSingle()) |
Next | Returns an 32-bit unsigned random integer. |
Restart() |
Restarts the random number generator using the original seed.
(Inherited from ExtendedRandom) |
Restart( |
Restarts the random number generator using the specified seed.
(Inherited from ExtendedRandom) |
Sample |
Returns a random number between 0 and 1.
(Overrides Random.Sample()) |
Shuffle<T>(T[]) | Performs an in-place shuffle of an array. (Inherited from Random) |
Shuffle<T>(Span<T>) | Performs an in-place shuffle of a span. (Inherited from Random) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
AsParallel |
Returns a thread-safe version of this random number generator.
(Defined by RandomExtensions) |
Correlated |
Generates a series of random variables with the specified correlation matrix.
(Defined by RandomExtensions) |
Fill |
Fills a Double array with random numbers.
(Defined by RandomExtensions) |
Fill |
Fills an Int32 array with random numbers.
(Defined by RandomExtensions) |
Fill |
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a vector with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a vector with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a Double array with random numbers.
(Defined by RandomExtensions) |
Fill |
Fills an Int32 array with random numbers.
(Defined by RandomExtensions) |
Fill |
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a Double array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills an Int32 array with random samples from the specified distribution.
(Defined by RandomExtensions) |
Fill |
Fills a list with normal random numbers with zero mean and unit
standard deviation.
(Defined by RandomExtensions) |
Fill |
Fills a list with normal random numbers with zero mean and unit
standard deviation.
(Defined by RandomExtensions) |
Get |
Creates an array populated with items chosen at random
from the provided set of choices without replacement.
(Defined by RandomExtensions) |
Get |
Populates the specified span with items chosen at random
from the provided set of choices without replacement.
(Defined by RandomExtensions) |
Get |
Creates an array populated with items chosen at random
from the provided set of choices without replacement.
(Defined by RandomExtensions) |
Next |
Returns a sample from the specified distribution.
(Defined by RandomExtensions) |
Next |
Returns a sample from the specified distribution.
(Defined by RandomExtensions) |