Play the flag to and watch. A random level would be chosen or if you want you can press "See inside" and make a different level for the ball to bounce around...
An "If on sprite" Block working pretty well... ---------------------------------------------------------------------------- Big thanks to @XYZ- for the base script.