This Demonstration shows a two-dimensional version of the -body problem, in which different masses interact gravitationally. In order to predict their motions, a system of coupled differential equations must be solved consistent with a set of initial conditions for positions and velocities that are chosen at random.