UNPKG

@unglish/word-generator

Version:

A simple generator for creating unglish words.

10 lines (9 loc) 231 B
const rand = Math.random; let currentRand = rand; export const getRand = () => currentRand; export const overrideRand = (randomFunc) => { currentRand = randomFunc; }; export const resetRand = () => { currentRand = rand; };