HW3 moving random method and making more random's methods