JS pseudorandom number generator with repeatability, better randomness