In C/C++, rand() and srand() are usually used by us when we want to get a random integer. But when I tried to rewrite it myself, I found it difficu
rand()
srand()
That pseudorandom number generator is a Linear Congruential Generator.