MCPcopy Create free account
hub / github.com/breck7/scroll / randomExponential

Function randomExponential

external/.d3.js:14550–14554  ·  view source on GitHub ↗
(lambda)

Source from the content-addressed store, hash-verified

14548
14549var exponential = (function sourceRandomExponential(source) {
14550 function randomExponential(lambda) {
14551 return function() {
14552 return -Math.log1p(-source()) / lambda;
14553 };
14554 }
14555
14556 randomExponential.source = sourceRandomExponential;
14557

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected