MCPcopy Create free account
hub / github.com/cocos/cocos-engine / pseudoRandom

Function pseudoRandom

cocos/core/math/utils.ts:175–178  ·  view source on GitHub ↗
(seed: number)

Source from the content-addressed store, hash-verified

173 * @return The pseudo random.
174 */
175export function pseudoRandom (seed: number): number {
176 seed = (seed * 9301 + 49297) % 233280;
177 return seed / 233280.0;
178}
179
180/**
181 * @en

Callers 13

_emitMethod · 0.90
_updateParticlesMethod · 0.90
calculatePositionsMethod · 0.90
emitMethod · 0.90
updateParticlesMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90
animateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected