They cast lots for each gate, according to their families, young and old alike.