randi (1)
Categorial random vector.
Prototype
static Veci randi(int M, int n)
Parameters
M | Number of categories. |
n | Number of points to generate. |
Returns
A vector of \(n\) integers between \(0\) et \(M-1\).
Categorial random vector.
static Veci randi(int M, int n)
M | Number of categories. |
n | Number of points to generate. |
A vector of \(n\) integers between \(0\) et \(M-1\).