RandomStreams Class

Provides static extension methods for bulk random stream creation.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public static class RandomStreams
Inheritance
Object  →  RandomStreams

Remarks

This class serves as the canonical home for all bulk stream creation APIs. On C# 14 and later, these methods appear as type-attached extension members. On earlier C# versions, they are called as ordinary static methods.

The methods in this class support:

  • Deterministic creation of multiple independent RNG streams
  • Hierarchical prefix identity via StreamAddress
  • Explicit enumeration offset via startIndex parameter
  • Both mixing-based (tree) and jump-based (partition) stream generation

Methods

CreatePartitionedStreams<TRandom> Creates an array of random number generators using jump-based stream partitioning.
CreateStreams<TRandom>(Int32, RandomOptions, UInt64) Creates an array of random number generators using mixing-based stream derivation.
CreateStreams<TRandom>(Int32, Int64, UInt64, SeedProfile) Creates an array of random number generators from a scalar seed.
CreateStreams<TRandom>(Int32, UInt64[], UInt64, SeedProfile) Creates an array of random number generators from a seed array.

See Also