Check out the documentation for d3.force.
While we put nodes in a random order on Wednesday, d3 also has a default positioning for nodes when you initialize a forceSimulation. It staggers them using a phyllotaxis arrangement.
Here is the d3.drag documentation page.