/**
 * Return a function that works in the same exact way as Math.random(), but with the given seed.
 * See http://indiegamr.com/generate-repeatable-random-numbers-in-js/
 */ export default function seededRandom ( seed ) { return ( ) : number => { seed = ( seed * 9301 + 49297 ) % 233280 ; return seed / 233280 ; } ; }