randperm (Matlab function) Uniformly distributed random numbers and arrays

## Matlab/Scilab equivalent

Matlab | Scilab |
    randperm(n)
    randperm(n, m)
    randperm(randStreem, ..)
    grand(1, "prm", 1:n)
    grand(1, "prm", 1:n)(1:m)
    // No equivalent
    grand(1, "prm", 1:10)
    grand(1, "prm", 1:10)(1:6)