MCPcopy Index your code
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / _seededRandom

Function _seededRandom

assets/js/physics-matter.js:4552–4556  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4550 };
4551
4552 var _seededRandom = function() {
4553 // https://en.wikipedia.org/wiki/Linear_congruential_generator
4554 Common._seed = (Common._seed * 9301 + 49297) % 233280;
4555 return Common._seed / 233280;
4556 };
4557
4558 /**
4559 * Converts a CSS hex colour string into an integer.

Callers 1

physics-matter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected