Srand is well incorporated in this code? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Srand is well incorporated in this code?

https://code.sololearn.com/ciVS66xoje9S/?ref=app

7th Jun 2019, 8:00 PM
Miosotis
2 Réponses
+ 1
Miosotis, yes, you can see that if you comment the srand line you always get the same "random" number in your comparison (if the number you input is smaller, otherwise you do not see it).
14th Jun 2019, 6:11 PM
bell
bell - avatar
0
Yes
10th Jun 2019, 6:43 AM
Vlad Serbu
Vlad Serbu - avatar