I am working on a simulation problem for a class. I am simulating a simple game where you flip a coin 10 times, Heads = 0, Tails = 1. To win the game, I need to flip 4 heads (0's) in a row. How can I get Excel to recognize four 0's in a row? I can generate the random numbers (=RANDBETWEEN(0,1)) but I can't figure out the right formula to generate a True (win) or False (lose) output. An example would be:
0 1 0 1 0 1 0 1 0 1 = Loss
1 1 0 1 0 1 0 0 0 0 = Win
I think I could do it using IF/AND functions but I think it would get pretty complicated doing it that way.
Bookmarks