#include #include int main() { int i; FILE *out; out = fopen("random_data.dat", "w"); for (i=0; i<=1000; i++) { fprintf(out,"%f " " %f\n", (float) i, sin(i)); } fclose(out); return 0; }