Why doesnt this work?
Its giving me a headick!
Code:#include <conio.h> #include <cstdlib> #include <iostream> #include <stdio.h> #include <time.h> using namespace std; double random_number; double number_generator() { srand( time(NULL) ); random_number = rand()%10+1; return random_number; } int main() { cout << random_number; getch(); return 0; }