UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

12 lines 286 B
export class Mulberry32 { Ks; constructor(t) { this.Ks = t; } next() { let t = this.Ks += 1831565813; t = Math.imul(t ^ t >>> 15, t | 1); t ^= t + Math.imul(t ^ t >>> 7, t | 61); return ((t ^ t >>> 14) >>> 0) / 4294967296; } }