• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
+ 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 Antwoorden
+ 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

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
What is a simple and easy way to learn ruby? :)
1 Votes
Help
1 Votes
How do i make a lexer and parser
1 Votes
Lesson Takeaways
0 Votes
If we already have the DELETE command in SQL, why do we need TRUNCATE?
2 Votes
I’m a beginner and looking to learn the basics
0 Votes
How to get Intergalactic champion badge?
0 Votes
How to open codes that are not saved in public
0 Votes
Grid layout
1 Votes
Which language?
0 Votes