Removed slow seedrandom. Replaced slow division. Fixed restart bug.