I defined r as in the main function:
srand(time(NULL)); r = rand() %1024 + 1; and I use r in another function I called in main function. int make_a_guess(in