add random math helpful function