Better implementation of parallel computing in the unix and macOS environment. Changed RNG in parallel approach.