Click or drag to resize

ZipfSample(Random, Double, Int32) Method

Samples a random variable.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static int Sample(
	Random rnd,
	double s,
	int n
)

Parameters

rnd  Random
The random number generator to use.
s  Double
The s parameter of the distribution.
n  Int32
The n parameter of the distribution.

Return Value

Int32
A sample from the distribution.
See Also