Generate random numbers from various distributions.
ISC License
Bot releases are hidden (Show)
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
Published by Fil about 4 years ago
Thanks to @Parcly-Taxel for the contributions!
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.
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.