actually no the move is preaty stupid...just:

1. get a random number to change the direction else keep the old one.
2. if the changing the direction
A) get a random number for left or right
B) get a random number for speed

and voila..

ms