Need some guidance

Hey guys, i have this basic assignment from my C++ class this week, and the text is as follows, " Write a program which reads n (e.g. n=10) numbers between 0 and 99 (randomly chosen) in a loop and finds their
minimum and maximum at the same time.
"

Now, im not sure if i understand the question right, because, i can create a loop that prints out 0-99 number, but, what i need help with is if someone could explain to me a step by step requirement, please,do not misunderstand my request, i am not asking for a complete code, nor any part of the code itself, i just need someone to tell me , This and this and this will get your homework done,if you get what i mean. Thanks in advance :)

Ps. I forgot to mention, i have no idea how do i 'randomly choose' the number generated from the loop,otherwise thats all that is troubling me for now.
Last edited on
Pseudocode:
LOOP 10 TIMES
    GENERATE RANDOM NUMBER IN RANGE [0;99]
    (OUTPUT IT?)
    DO SOME STUFF WITH MAXIMUM AND MINIMUN
END LOOP
OUTPUT MAXIMUM AND MINIMUM


Use C library and rand() function: http://en.cppreference.com/w/cpp/numeric/random/rand
Or C++ one: http://en.cppreference.com/w/cpp/numeric/random/uniform_int_distribution
Last edited on
Thank you very much for the quick answer, the links provided are awesome.
Topic archived. No new replies allowed.