What would i use in a c++ program for the program to give me random a set of numbers.?
I am writing a program that adds two random numbers and display the answer too an individual when the individual is ready. But dont know what i would need for the program to give the two numbers.
It gives you the same numbers because rand() gives you a set of pseudo-random numbers. You need change the seed that rand() uses. Use #include<ctime> and time(0) in your random number generator. You can search the time() function on this website for help on implementation. Good Luck! :)