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