What makes a melody good versus just random notes?
A good melody has shape (clear direction), a memorable element (hook) that repeats, moves mostly by step rather than by big jumps, and includes resting points for phrasing. These principles are learned through listening and practice.
