MCPcopy Create free account
hub / github.com/microsoft/SandDance / sample

Function sample

docs/app/js/sanddance-app.js:119258–119260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119256 } else return b;
119257 },
119258 sample () {
119259 return a + Math.floor(d * random());
119260 },
119261 pdf (x) {
119262 return x === Math.floor(x) && x >= a && x < b ? 1 / d : 0;
119263 },

Callers

nothing calls this directly

Calls 1

randomFunction · 0.70

Tested by

no test coverage detected