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.3179.0 (4.8.3179.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

[Missing <param name="seed"/> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

a  UInt64  (Optional)

[Missing <param name="a"/> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

c  UInt64  (Optional)

[Missing <param name="c"/> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

x1  UInt64  (Optional)

[Missing <param name="x1"/> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

x2  UInt64  (Optional)

[Missing <param name="x2"/> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

Return Value

IEnumerableDouble

[Missing <returns> documentation for "M:Altaxo.Calc.Random.Xorshift.DoubleSequence(System.Int32,System.UInt64,System.UInt64,System.UInt64,System.UInt64)"]

Remarks
Supports being called in parallel from multiple threads, but the result must be enumerated from a single thread each.
See Also