0

Hi, how can i write it in separate function ?

#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main () { srand(time(0)); for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }

17th Jul 2019, 8:39 AM
San Anemos
San Anemos - avatar
4 Answers
+ 1
Thanks
17th Jul 2019, 8:59 AM
San Anemos
San Anemos - avatar
0
what is now as relevant ?
17th Jul 2019, 8:46 AM
San Anemos
San Anemos - avatar