Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 1

what is srand()?pls explain it and it's functionality.

int main () { srand(98); for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } } pls also explain this program's functionality

c++srand
25th Sep 2017, 2:48 PM
Shivani Goyal
2 Respuestas
+ 11
https://www.sololearn.com/discuss/600360/?ref=app https://www.sololearn.com/discuss/571632/?ref=app https://www.sololearn.com/discuss/247809/?ref=app https://www.sololearn.com/discuss/600365/?ref=app https://www.sololearn.com/discuss/591472/?ref=app
25th Sep 2017, 3:32 PM
Hatsy Rei
Hatsy Rei - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Python intermediate help with dictionaries
0 Votes
Marquee
1 Votes
I'm about to make a complex calculator in python
0 Votes
Any Advise?
1 Votes
How far do courses go on Sololearn?
0 Votes
RUST'S FUTURE
1 Votes
Popsacles Aufgabe
1 Votes
why is python community is too small in sololearn?
0 Votes
Button In C++
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes