Returns a vector of random samples from the distribution.
Namespace: Extreme.Statistics.DistributionsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public Vector<int> Sample(
int count,
Random random
)
Public Function Sample (
count As Integer,
random As Random
) As Vector(Of Integer)
public:
Vector<int>^ Sample(
int count,
Random^ random
)
member Sample :
count : int *
random : Random -> Vector<int>
Parameters
- count
- Type: SystemInt32
The number of samples to return. - random
- Type: SystemRandom
A Random object that specifies the
uniform random number generator that is to be used to generate the samples.
Return Value
Type:
VectorInt32A vector of signed 32-bit integers.
This method uses the random number generator
specified by random to
generate a random sample from the distribution.
The return value contains a set of values that
follow the statistical distribution represented by this
distribution.
Numerical Libraries
Supported in: 6.0
Reference