#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { cout<<"random sequence? really?"<<endl; for (int i=0; i<10; i++){ srand(time(NULL)); cout<<rand()<<endl; } return 0; }
Standard input is empty
random sequence? really? 1762566723 1762566723 1762566723 1762566723 1762566723 1762566723 1762566723 1762566723 1762566723 1762566723