#include <iostream> using namespace std; const int SIZE = 100; int main() { int a[SIZE]; srand(time(NULL)); for(int i=0; i!= SIZE; i++) { a[i] = rand()%SIZE + 1; } for (int i=0; i!=SIZE; i++) cout << a[i] << endl; system("PAUSE"); return 0; }