Click or drag to resize

XorshiftDoubleSequence Method

Returns an infinite sequence of random numbers greater than or equal to 0.0 and less than 1.0.

Namespace: Altaxo.Calc.Random
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static IEnumerable<double> DoubleSequence(
	int seed,
	ulong a = 916905990,
	ulong c = 13579,
	ulong x1 = 362436069,
	ulong x2 = 77465321
)

Parameters

seed  Int32
The seed value used to initialize the generator.
a  UInt64  (Optional)
The multiplier parameter.
c  UInt64  (Optional)
The carry parameter.
x1  UInt64  (Optional)
The first xorshift state value.
x2  UInt64  (Optional)
The second xorshift state value.

Return Value

IEnumerableDouble
An infinite sequence of random numbers greater than or equal to 0.0 and less than 1.0.
Remarks
Supports being called in parallel from multiple threads, but the result must be enumerated from a single thread each.
See Also