W
Wilson
I am new to c++ and part of my program needs to create three random
numbers and then output them. I decided to use the computer clock to
help ouput the numbers but i constantly get the same results. I have
used the header file cstdlib for functions rand and srand. Can you
please advise how to alter the program to create random numbers every
time the program is run (or suggest alternate ways)
thanks
numbers and then output them. I decided to use the computer clock to
help ouput the numbers but i constantly get the same results. I have
used the header file cstdlib for functions rand and srand. Can you
please advise how to alter the program to create random numbers every
time the program is run (or suggest alternate ways)
thanks