modify random script generator;add random problems