HOW RAND ,SRAND , Randomize function works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

HOW RAND ,SRAND , Randomize function works

pls help i am a board exam student

28th Jul 2017, 1:43 PM
Manish
3 Answers
28th Jul 2017, 1:47 PM
jay
jay - avatar
28th Jul 2017, 1:59 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
rand makes random values but there is a seed value that rand uses,every time you compile there will be same values. srand changes seed value every time you compile so there will be different values than previous compilation.
28th Jul 2017, 2:01 PM
Yusuf Saylam
Yusuf Saylam - avatar