Okay, my prof gave us an assignment and I wanted to test if my program was working correctly but I'm not sure how to test it so
my question is:
If my prof and I are using both the same compiler (DEV-C++)
and we use the same SEED for Random number generator.
And we may or may not have the same method of generating numbers ...
Are we supposed to supposed to have the same sequence?
For example my code for my random number generator, generates a number 1-4.
int randNum = (rand() % 4)+1)
When I ask it to output 10 random numbers using 789 as my seed (same as prof)
I get
I don't know what my prof's output is, I just know it isn't the same as mine.
so, if it's from the same compiler are we supposed to have the same exact number(s) generated? Or is it that if you make a difference num generator that you'll get a different output?
Thank you ^-^!