int main(int argc, char **argv){ double *walk; int n_points=100; int semilla; semilla = atoi(argv[1]); srand48(semilla); walk = malloc(n_points * sizeof(double)); make_walk(walk, n_points); print_walk(walk, n_points); return 0; }
int main(int argc, char **argv){ double *walk; int n_points; int k; int numerodemarchas=100000; n_points = atoi(argv[1]); walk = malloc(numerodemarchas * sizeof(double)); for(k=0;k<numerodemarchas;k++){ make_walk(walk, n_points, k); } print_walk(walk, numerodemarchas); return 0; }