I understand that rand() function generates the same number(s) each you run it if you don\'t change the seed number. That\'s where srand() comes in. Time is always changing
The random number seed is a global static variable. rand and srand both have access to it.
rand
srand