fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. int main() {
  7. cout<<"random sequence? really?"<<endl;
  8. for (int i=0; i<10; i++){
  9. srand(time(NULL));
  10. cout<<rand()<<endl;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
random sequence? really?
1762566723
1762566723
1762566723
1762566723
1762566723
1762566723
1762566723
1762566723
1762566723
1762566723