I read the explenations but I couldn't figure out the purpose of srand(), can somebody explain how it works?
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.
@Purple Viking Ty , I understand now.