MCPcopy Create free account
hub / github.com/esengine/esengine / randomRange

Function randomRange

packages/particle/src/ParticleEmitter.ts:382–384  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

380}
381
382function randomRange(min: number, max: number): number {
383 return min + Math.random() * (max - min);
384}
385
386function clamp(value: number, min: number, max: number): number {
387 return Math.max(min, Math.min(max, value));

Callers 2

_initParticleMethod · 0.70
_getShapeOffsetMethod · 0.70

Calls 1

randomMethod · 0.80

Tested by

no test coverage detected