just spinning bread
This is actually kinda not simple. The code basically just chooses a random target position. Then it moves by speed - or + for both the x and y. It chooses a new random target once it get with speed pixels for the x and y. Since the speed var is bigger than one you a lot of the time will not be able to hit your target directly. So you can just say if you get close you can just move on. I did this all my self and may be using this principle for other projects.