Change one thing, and the seed

Keep the same seed and change only one condition, and you can see what that condition does.

startone change

Learn more

The seed is the number that sets where the stars start. With the same seed, every run starts the stars in exactly the same places. So if you keep the seed and change only the mass or the direction of motion, any difference in the result comes from that one condition.

Science calls this controlling variables. Change several things at once and you cannot tell which one made the difference.

  • Flip only galaxy B's spin and compare the tails. Turning the same way as the orbit (prograde) gives longer tails.
  • Switch off dynamical friction or change the gravity strength, and rerun with the same seed.
  • Save the experiment or export JSON to keep both setups for comparison.

In this simulation

The seed sets the random numbers used for the stars' starting positions and velocities. The calculation itself follows the same rules for every seed. The same seed and settings give the same result on the same computer.

Try it in the simulation →