Why does this doesn't return random number? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Why does this doesn't return random number?

#include <iostream> #include <cstdlib> using namespace std int main() { srand(79) ; //any number instead of 79 cout<<rand()<<endl; }

13th Jun 2018, 7:20 AM
Neel Rathod
Neel Rathod - avatar
0 Réponse