Every gate was assigned by lot to different families, the least important equal to the most important.