procedure RandomMultinomial(Dst: TVecInt; nTrials: Integer; k: Integer; p: TDoubleArray);
Generates multinomially distributed random numbers.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVecInt | source TVecInt |
| 2 | nTrials | Integer | |
| 3 | k | Integer | |
| 4 | p | TDoubleArray |
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.