The srand() function sets the starting point for producing a series of pseudo-random integers. If srand() is not called, the rand() seed is set as if srand(1) were called at program start. Any other value for seed sets the generator to a different starting point
Please search the forum as this subject had been discussed quite frequently.
BTW, you don't need to write a name in thread tags. If you wish to mention a friend, then do so in the thread Description. Edit your thread, in the Description type @ and then select a name from the popup list of names.
You can tag C srand instead ...
Sorry bro, I didn't mean "tag" by @csrand. I mean, you can type 'C srand' (without the quotes) in the Relevant Tags' input.
As for @, it is used to mention a friend, like you mentioned me here. You can mention Junaid in the thread Description, but not in the 'Relevant Tags'. He will get notified if you mention him, then he can come in.
* Tags are words written in 'Relevant Tags' section that are related to thread topic, and can describe or improve the scope and/or context clarity.
e.g. 'C srand'
C -> Relevant language
srand -> Relevant subject
Hope it's clear bro Naveed Ahmad