Generates an array of random integers from a geometric distribution, seeds and generator number passed explicitly
int geornd( long * v, uint n, double p )
Return NE_NOERROR(0) on success, otherwise error
EX1
//This example is to generate pseudo-random numbers from a geometric distribution int geornd_ex1() { int n = 10; long v[10]; double p=0.01; int nRet = geornd( v, n, p); if(0 != nRet) return 0; for(int i=0;i<n;i++) printf("v[%d]: %d\n",i, v[i]); return 1; }
binornd
origin.h