permrnd

 

Description

Pseudo-random permutation of an integer vector

Syntax

int permrnd( long * pV, uint n )

Parameters

pV
[input] The n integer values to be permuted
n
[input] The number of values to be permuted

Return

Return NE_NOERROR(0) on success, otherwise error

Examples

EX1

void permrnd_ex1()
{
        int n = 20;
        vector<long> vl(n);
        int nRet = permrnd(vl, n);
        return;
}

Remark

See Also

mvnrnd

header to Include

origin.h

Reference