Significantly improved random number generator, added levelling