0
rand() and srand()
Actually, I can't differentiate b/w rand() and srand() function, Anyone who can guide me?
1 Odpowiedź
+ 1
When u use srand() you are defining the seed that will be used to create a random number. Just notice that those number aren't really random, because they are obtained from an algorithm that uses a seed to generate them. If this seed is changed, the random component will be higher.