Generates an array of random numbers from an F-distribution, seeds and generator number passed explicitly
int frnd( double * v, uint n, int df1, int df2 )
Return NE_NOERROR(0) on success, otherwise error.
EX1
//This example is to generate pseudo-random numbers from an F-distribution int frnd_ex1() { int n = 10; vector v( n ); int df1 = 2; int df2 = 3; int nRet = frnd( v, n, df1, df2); if(0 != nRet) return 0; for(int i=0;i<n;i++) printf("v[%d]: %f\n",i, v[i]); return 1; }
binornd
origin.h