generates random variates from over 870 univariate distributions
RANDPERMFULL (N) returns a random derangement (complete permutation) of the integers from 1 to N
RANDPERMFULL(N) creates a row vector R, such that R(j) ~= j for all j=1:N. This type of permutation is called a derangement.N should be larger than 1.Example:randpermfull(7) % might be [2 4 5 6 1 7 3], but not
RAND_INT(R,N) returns an n-by-n matrix containing pseudo-random integer values from range R.
RANDPERMFULL (derangement)#17981 - RANDBLOCK#27076 - Shuffle
A set of functions for generating and testing random permutations of the integers (1,2, ..., n).
The main functions provided are:1. p = GRPfys(n); generates a random permutation of length n.2. p = GRPmex(n); generates a random permutation of length n.3. p = GRDrej(n); generates a derangement of
Random permutation of array elements, C-Mex: much faster than RANDPERM
output elements. Optional, default: N.OUTPUT: Index: [1:NOut] elements of shuffled [1:N] vector in the smallest possible integer type.3. Derangement index:Index = Shuffle(N, 'derange', NOut)Equivalent to
version 220.127.116.11David Fass
Partial random permutation of a vector.
("derangement"). If you don't like this, use the following syntax: X = PARTPERM(A,IDX,'allow') randomly permutes the elements of vector A which are specified by vector IDX, but allows indexed elements to remain