Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/jssm/jssm_util.d.ts>gen_splitmix32

Fast, easy Javascript finite state machines with visualizations; enjoy a one liner FSM instead of pages. MIT; Typescripted; 100% test coverage. Implements the FSL language.
Latest
function gen_splitmix32
import { gen_splitmix32 } from "https://deno.land/x/jssm@5.99.0/jssm_util.d.ts";

Creates a SplitMix32 random generator. Used by the randomness test suite.

Sourced from bryc: https://github.com/bryc/code/blob/master/jshash/PRNGs.md#splitmix32

Replaces the Mulberry generator, which was found to have problems

Parameters

optional
a: number | undefined

Returns

() => number