Also, the arguements (that I assumed were mean, stddev or mean, coefvar) doesn't seem to do a thing. I always get the same distribution.
I'll spare you the whole mod file, but this is the "offending" piece
Code: Select all
VERBATIM
static float Quanta_With_Var(int num, float amp, float coefvar) {
int i;
float totalG=0;
for(i=0; i<=num; ++i) {
totalG+=normrand(amp, amp*coefvar);
printf("%f\n", normrand(10, 100));
}
return (float) totalG;
}
ENDVERBATIM
Clearly not normal. On a logged Y axis, normal distributions appear parabolic. But a Lorentzian curve seems to fit it okay.