C++ question. Plinko Simulator

I am trying to begin a project that will simulate the game Plinko from the price is right. Were a puck is dropped down a board of pegs, the peg can either bounce left or right. How do I translate the idea of the peg jumping from left or right randomly into code? for loop? while loop? switch? Just a clue would be lovely.

I'm not asking for anyone to write the code or do my home work
maybe just give me an idea where to start? Feeling lost not sure what to do.
Topic archived. No new replies allowed.