Here's the code.
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
void randomArrayFill( int *a, int size )
{
int *a = new int[size];
for( int i = 0; i < size; i++ )
{
a[i] = rand() % 100;
}
}
int main()
{
//----Init--------------------------------------------------------------
int size = 0;
int *a = 0;
srand(0);
//----End Init----------------------------------------------------------
cout << "Enter the size of an array to create: ";
cin >> size;
randomArrayFill( a, size );
for( int i = 0; i < size; i++ )
{
cout << a[i];
}
cin.get();
cin.get();
return 0;
}






