Seedable Math.random compatible pseudorandom number generator