#include <stdlib.h>
#include <time.h>
const int size=......;
int *Array=new int [size];
srand(unsigned int(time(NULL)));
for(int i=0;i<size;i++)
{
Array[i]=rand()%1000;
}