Closed mbostock closed 4 years ago
Would we add the lcg in d3-random then? https://github.com/d3/d3-random/issues/33
We could, or we could do it here as the default value for simulation.randomSource.
I think it makes more sense in d3-random, but the code is so small it might be better to copy it here and avoid the additional dependency.
I’ve added it to this PR.
Sorry to bug you, any chance we could get a minor release with this?
Fixes #121.
TODO Default to a linear congruential generator rather than Math.random?Done!