Generates an array of random numbers from a uniform distribution, seeds and generator number passed explicitly
int unifrnd( double * v, uint n, double a, double b )
Return NE_NOERROR(0) on success, otherwise error
EX1
//This example is to generate pseudo-random numbers from a uniform distribution int unifrnd_ex1() { int n = 10; vector v(n); int a = -1, b = 1; int nRet = unifrnd( v, n, a, b); 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