remove duplicated line of code from random polynomial function