How are profit distributed to the members in cooperative societies?

The profit of cooperative society is not distributed in the ratio of capital contributed by each member but it is distributed according to dealings of members with the society.