Before changing
Changed random() and deleted imul
Final commit