Be competitive in every game (to a point), beat some good teams, and lose in random and unsystematic ways to bad teams. The team doesn't develop bad habits and the fans get to see some occasional good basketball.
Then you're lottery bound with a pretty good team.