How to use the d3-random.randomExponential function in d3-random

To help you get started, we’ve selected a few d3-random examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / d3-random / d3-random-tests.ts View on Github external
// randomBates
// ------------------------------------------------------------

randomNumberGenerator = d3Random.randomBates(3);

// ------------------------------------------------------------
// randomIrwinHall
// ------------------------------------------------------------

randomNumberGenerator = d3Random.randomIrwinHall(3);

// ------------------------------------------------------------
// randomExponential
// ------------------------------------------------------------

randomNumberGenerator = d3Random.randomExponential(1 / 40);