at step 58, need to implement random function.