How do boomerangs work?

When you throw them away from you they fly around and return to you.