Matthew Halsall – Colour Yes WIND -- km/h
LOADING... --°N --°E 00:00:00
What is Mulberry32?
Mulberry32 is a fast, lightweight pseudorandom number generator (PRNG) algorithm. It's a 32-bit hash function that produces high-quality random numbers suitable for procedural generation, simulations, and other applications requiring deterministic randomness.
[[240815 - Mulberry32 in Javascript]]
function mulberry32(a) {
return function() {
a |= 0;
a = a + 0x6D2B79F5 | 0;
var t = Math.imul(a ^ a >>> 15, 1 | a);
t = t + Math.imul(t ^ t >>> 7, 61 | t) | 0;
t = t ^ t >>> 14;
return (t >>> 0) / 4294967296;
};
}