Where is mistake? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
24th Jun 2019, 5:57 AM
Физик Химик
Физик Химик - avatar
2 Answers
+ 5
Line 19 is a function declaration/prototype, not a function call. Remove the "int". Also, call srand() once from main(). If you call it over and over again in an infinite loop, it might generate the same "random" numbers thousands of times in a row
24th Jun 2019, 6:02 AM
Anna
Anna - avatar
+ 1
Thank you
24th Jun 2019, 6:04 AM
Физик Химик
Физик Химик - avatar