woops sorry about that. Here is the code with the scaling I am doing:
Code:
#include <stdio.h>
#include <time.h>
#include <string.h>
FILE * f1;
int main (int argc, const char * argv[]) {
srand( (unsigned) time(NULL));
f1 = fopen("randtest.txt", "w");
for (int j = 0; j < 10000; j++) {
double sum = 0;
for (int i = 0; i < 100000; i++) {
double n = (rand() % 200)/100.00 - 1;
sum += n;
}
fprintf(f1,"%lf\n",sum);
}
return 0;
}
From a mathematical standpoint I don't see why this would introduce a bias (although I don't do a whole lot of work with mod). I am pretty certain this must be the problem point. Thanks in advance.