This was governed entirely by Newtonian mechanics. Each piece of the moon attracted every other piece more or less strongly depending on its mass and its distance. It could be simulated on a computer quite easily. The whole rubble cloud was gravitationally bound. Any shrapnel fast enough to escape had done so already. The rest was drifting around in a loose huddle of rocks. Sometimes they banged into one another. Eventually they would stick together and the moon would begin to re-form.