Quote Originally Posted by royalstatus View Post
hi, the random numbers (x_value, y_value) are generated within the while loop. So opening the file before the while loop doesn't give me the numbers i need.
What numbers do you want written to the file ?

I assumed that they were
Code:
x_value = static_cast<double>(rand())/RAND_MAX;
y_value = static_cast<double>(rand())/RAND_MAX;