What is this srand (time(0)) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is this srand (time(0))

Please explain? Time

16th Dec 2018, 10:09 AM
Zeshan Ahmed
Zeshan Ahmed - avatar
2 Answers
+ 7
https://www.sololearn.com/Discuss/1622617/?ref=app https://www.sololearn.com/Discuss/1622619/?ref=app Please don't post the same thing more than once. Its regarded as spam
16th Dec 2018, 10:16 AM
Koketso Dithipe
Koketso Dithipe - avatar
+ 4
Seed to generate true random number https://www.sololearn.com/learn/CPlusPlus/1638/ Please specify language Not to do on Sololearn Q&A https://code.sololearn.com/W26q4WtwSP8W/?ref=app Also, please use search bar first https://www.sololearn.com/post/10362/?ref=app
16th Dec 2018, 10:13 AM
Gordon
Gordon - avatar