Rating:

The rand() function is not real random.
The table of random is fixed by random seed.
So, if you know the seed, you can know what is the output of rand().