hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique

```
srand((unsigned)time(0));
int number= (rand()%9999+1000);
```

, I also need to put these random numbers in an array so I could compare these random numbers to a punch of numbers that a user enters " I'm doing a number guessing game "

thx 4 advance 4 ur help & I really appreciate it :)