Random Source<TGenerator>.Uncached Facade Structure
Provides uncached random number generation for 64-bit word RNGs.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public readonly struct UncachedFacadeRemarks
The RandomSource<TGenerator>.UncachedFacade struct forces 64-bit RNGs to consume a full 64-bit value for each call, even when returning 32-bit or smaller types. This is less efficient but matches certain compatibility modes and reference implementations.
Consumption Pattern:
- NextUInt32(): Consumes ONE 64-bit value, returns upper 32 bits
- Next(): Consumes ONE 64-bit value, returns 31-bit signed int
- NextSingle(): Consumes ONE 64-bit value, uses top 24 bits
Methods
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) |
| Get | Returns the hash code for this instance. (Inherited from ValueType) |
| Get | Gets the Type of the current instance. (Inherited from Object) |
| Next | Returns a random 31-bit non-negative integer, consuming a full 64-bit value. |
| Next | Returns a random single-precision floating-point number in [0, 1), consuming a full 64-bit value. |
| Next | Returns a random 32-bit unsigned integer, consuming a full 64-bit value. |
| ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |