TRngStream.RandomMultinomial Method

procedure RandomMultinomial(Dst: TVecInt; nTrials: Integer; k: Integer; p: TDoubleArray);

Generates multinomially distributed random numbers.

#NameTypeDescription
1DstTVecIntsource TVecInt
2nTrialsInteger
3kInteger
4pTDoubleArray

Result: stored in self (calling object)

Remarks:

The function generates multinomially distributed random numbers with m independent trials and k possible mutually exclusive outcomes, with corresponding probabilities in p.