Update randomwaypoint.m

Corrected and working one..!