Generates an array of random numbers from a Student's t-distribution, seeds and generator number passed explicitly
int trnd( double * v, uint n, int df )
Return NE_NOERROR(0) on success, otherwise error.
EX1
//This example is to generate pseudo-random numbers from Cauchy distribution int trnd_ex1() { int n = 10; vector v(n); double df = 5; int nRet = trnd( v, n, df); if(0 != nRet) return 0; for(int i=0;i<n;i++) printf("v[%d]: %f\n",i, v[i]); return 1; }
mvnrnd
origin.h