I'm initializing the seed in a for loop. How did i initialize "randomly" each time the for loop goes through an interation?
This is what i have now
What do i do to change the seed so that different psuedorandom numbersCode:for (i=1; i<5; i++) { srand((unsigned int) time(0)); }
are generated?




Reply With Quote