Just some weird effect that might look cool in some games. You may use this idea
I used another sprite to go to a random place on the screen, so the moving sprite will use a "glide for seconds to xy" where the time is the distance it is from the other position. This makes it move at a constant speed. To make the trail behind it, it just creates lots of clones which fade away behind it. Quite simple.