1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 //srand((unsigned)time(NULL)); 7 srand(int(time(0))); 8 for(int i = 0;i < 10;i++) 9 { 10 cout << rand() << "\t"; 11 } 12 return 0; 13 }