random - rand() and srand() in C++ - Stack Overflow
Starting with the second question: Are the numbers generated completely random? No, that is very unlikely to ever happen in a computer. They are "pseudo-random" numbers, which is some sequence of numbers that vary in range over time in a random-like fashi...