Just watch it in real time. Or turbo mode.
Based on the pendulum, one of the few unpredictable forms of movement (scientifically known as chaotic movement). It's hard to make it completely unpredictable with simple math, but at least it's nice to look at.