Have you looked into using asm.js for the PRNG algorithms? http://asmjs.org/ It may take a little refactoring but there is a potential speed boost. http://jsperf.com/asm-js-rng/6