def mix
import bend-kit-random@0.1.0.1/random.bend as Randomimport Base
15# splitmix32's output mixer, a bijection on U32.
16def mix(+z: U32) -> U32:
17 +y = ((z .^. (z >> 16n)) * 569420461 : U32)
18 +w = ((y .^. (y >> 15n)) * 1935289751 : U32)
19 (w .^. (w >> 15n) : U32)