0
I read the explenations but I couldn't figure out the purpose of srand(), can somebody explain how it works?
2 ответов
+ 4
So you get how rand() works, right? It has its own list of "random" numbers that it uses every time. But, with srand(), you can choose a new list of "random" numbers. Each different number you use in srand() will provide it's own list of "random" numbers for rand() to use.
+ 1
@Purple Viking Ty , I understand now.