Each family was given a gate to guard. Lots were thrown to choose a gate for a family. Young and old were treated the same.