correct code and adapt test to new mt random generator funcion name