You realize, of course, that even a fair coin can give you ten heads in a row. There’s a probability that can be assigned to that combination.
A fair coin will give half heads and half tails over many trials, but it’s not guaranteed to be 50/50 over a shorter run.
Your own experience of the physical world tells you that your conclusion is incorrect. Same is true for rand().
2
solved Strange behaviour with rand()