Skip to content

xoshiro128p

xoshiro128p(seed): RandomFn

Defined in: xoshiro128p.ts:15

Creates a seeded pseudo-random number generator function using the xoshiro128+ algorithm by Blackman & Vigna (2018). 128-bit state, 32-bit output.

Recommended for floating-point generation. Passes PractRand. Faster than the ** variant.

number

The seed value used to derive the four 32-bit state words.

RandomFn

A function that generates pseudo-random numbers in the range [0, 1) when called.