• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

The srand() function is used to generate truly random number. Can anyone explain this just confuse a lot why this need in rand

c++rand
11th Aug 2017, 1:50 AM
Naresh
Naresh - avatar
2 odpowiedzi
+ 6
This code may help you understand why seeding is important in RNG algorithms. https://code.sololearn.com/cMUCJqFL1X65/?ref=app
11th Aug 2017, 2:29 AM
Hatsy Rei
Hatsy Rei - avatar
+ 6
More reference: https://www.sololearn.com/discuss/600365/?ref=app https://www.sololearn.com/discuss/600360/?ref=app https://www.sololearn.com/discuss/122840/?ref=app https://www.sololearn.com/discuss/243654/?ref=app
11th Aug 2017, 2:31 AM
Hatsy Rei
Hatsy Rei - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
Add lua
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Beginner_to_SoloLearn
1 Votes
How to learn C++ and how long does it take
1 Votes