+ 4
What is the srand() work?
Please help me anyone.
14 odpowiedzi
+ 5
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
+ 2
May help you understand 👍
http://www.cplusplus.com/reference/cstdlib/srand/
+ 2
You may find answer in https://www.geeksforgeeks.org/rand-and-srand-in-ccpp/
+ 2
You may go through https://www.tutorialspoint.com/c_standard_library/c_function_srand.htm
+ 1
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 ...
+ 1
Thank you for suggestion bro. Ipang
+ 1
I didnt understand the srand() bro please help me.Ipang 😰
+ 1
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
+ 1
Bro what is 'seed' means?😍
+ 1
Well explained here bro ... 👇
https://www.quora.com/What-is-seed-in-random-number-generation
+ 1
Thank you soo much bro👏🏻.
0
Okay no problem 👌
0
How can bro i tag the csrand?
0
You're welcome bro! 👌