Hi! How do I put the random number generated in an array so that I can make each number in it unique? Thanks! :)
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int generateRandomNo(int randomNumber){
srand(time(0));
randomNumber = rand()%10000;
return randomNumber;
}
int main(){
int randomNumber;
cout << generateRandomNo(randomNumber);
}