randperm
builtin · libnexusinterp/corefcn/rand-proprietary.cc
- :
p = randperm (n) ¶
- :
p = randperm (n, m) ¶
Random permutation of the integers 1 to n, or m distinct
integers chosen at random from them.
The result is a row vector. The generator of rand is used.