#include <ctime> #include <iostream> using namespace std; int main() { int i; int rd; srand(time(NULL)); rd = rand()%10; cout << rd <<endl; system("pause"); return 0; }