C++ developer

1. Write a function that that uses a standard random number generator to compute 100,000 random numbers between 1 and 500,000 and returns the total number of unique random numbers found.

2. Write a function similar to the first but returns the top repeated value (or values if there’s a tie).
I think you should read this first.
http://www.cplusplus.com/forum/beginner/1/
Topic archived. No new replies allowed.