Click or drag to resize

DiscreteUniformSamples(Random, Int32, Int32) Method

Samples a sequence of uniformly distributed random variables.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IEnumerable<int> Samples(
	Random rnd,
	int lower,
	int upper
)

Parameters

rnd  Random
The random number generator to use.
lower  Int32
Lower bound, inclusive. Range: lower ≤ upper.
upper  Int32
Upper bound, inclusive. Range: lower ≤ upper.

Return Value

IEnumerableInt32
a sequence of samples from the discrete uniform distribution.
See Also