Hansen Natural Corp has reached a deal to settle two shareholder lawsuits pending in a federal court in the US.