Home > matgraph > @permutation > random.m

random

PURPOSE ^

random(p) --- return a random reordering of the elements of p

SYNOPSIS ^

function q = random(p)

DESCRIPTION ^

 random(p) --- return a random reordering of the elements of p

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function q = random(p)
0002 % random(p) --- return a random reordering of the elements of p
0003 a = randperm(length(p));
0004 q = permutation(a);

Generated on Thu 13-Mar-2008 14:23:52 by m2html © 2003