NBody: perfect generator, add global parameters