Question: Maple random walk question

I think I am doing this question right. Is there anything to improve the code? 

Please Wait...