I have an array of six random numbers from 1-49 so far but some repeat eg, 12 15 43 43 22 15 is there a way around this problem?
so far I have...
int* get_numbers()
{
int Array[6], i;
printf("\n\n Your numbers are : ");
for (i = 0; i < 6; i++)
{
Array[i] = ((rand() % 49) + 1);
printf("%d ",Array[i]);
}
}
any feedback will be great, thanks