I'd like to test out the gambler's fallacy, using random numbers, and 50/50 odds.
In my program I did 100 rolls for each test.
There are 3 specific tests I'd like to perform. I'm using a random number between 1 and 100 for each roll.
First, the chances of getting below 50 on the first roll.
Second, the number of rolls below 50 a third time after already getting below 50 two consecutive times. (each roll would have to have 2 consecutive below 50 numbers or that roll shouldn't count)
Third, the number of rolls below 50 a fourth time after already getting below 50 three consecutive times. (similar to second test)

Just for anyone who is bored or curious. I'm aware that it should be a 50% chance to roll below 50 on any given test as they are all independent events. However, since the odds of rolling 3 or 4 consecutive numbers below 50 is quite low, I was curious to see some actual numbers.

The first test is pretty obvious, here is what I've done for the second test (third test would be similar) and I'm not sure if I've thought this through correctly, so I'd like a second opinion. I'm getting on average roughly 50.

Code:
Random rand = new Random((int)DateTime.Now.Ticks);
            int randomNumber = 0;
            int total = 0;

            for (int i = 0; i < 100; i++)
            {
                randomNumber = rand.Next(1, 101);
                if (randomNumber <= 50)
                {
                    randomNumber = rand.Next(1, 101);
                    if (randomNumber <= 50)
                    {
                        randomNumber = rand.Next(1, 101);
                        if (randomNumber <= 50)
                        {
                            total++;
                        }
                    }
                    else
                        i--;

                }
                else
                    i--;
            }