NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2606 most downloaded on npm
Generate random numbers from various distributions.
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 1.3 years
Most releases are documented
notes for 18 of 25 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
25 releases · first in 2014
Update dependencies. Make build reproducible.
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ .
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
One column per quarter.
v3.0.0
Compare
Accept any integer as a seed in d3.randomLcg . #37
Improve the performance of d3.randomLcg . Thanks, @jrus !
Add d3.randomLcg . #33
Allow d3.randomBates to take fractional n .
Thanks to @Parcly-Taxel for the contributions!
Add sideEffects: false to the package.json.
Don’t wrap Math.random in the default source.
Thanks to @lange, @p-v-d-Veeken and @svanschooten for your contributions!
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-random 1.x or use a transpiler.
Housekeeping.
Update dependencies.
Add *random*.source to allow custom sources of randomness. Thanks, @rolyatmax!
Nothing published for this version
Nothing published for this version
Add module entry point to package.json.
module entry point to package.json.Pursuant to the great namespace flattening, the random number generators have new names:
Pursuant to the great namespace flattening, the random number generators have new names:
There are also new random number generators for exponential and uniform distributions. The normal and log-normal random generators have been optimized.
See CHANGES for all D3 changes since 3.x.
Export to the global d3 in vanilla environments (d3/d3#2840).
d3 in vanilla environments (d3/d3#2840).Nothing published for this version
Prefix exported symbols with “random”.
Nothing published for this version
Add exponential. Thanks, @veltman!
Define d3-random module (and d3_random global), not random.
d3-random module (and d3_random global), not random.Adjust package.json definition for npm users.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →