Is there a name for a literary genre where the main character wanders around?
Is what you describe wanderings? Particular types would be the knight-errant, the gunslinger of Westerns, etc.
Those could be called odysseys. Named for the best known literary work of that type.