"The Athenians believed sortition to be democratic but not elections[5] and used complex procedures with purpose-built allotment machines (kleroteria) to avoid the corrupt practices used by oligarchs to buy their way into office."
"In Athens, to be eligible to be chosen by lot, citizens self-selected themselves into the available pool, then lotteries in the kleroteria machines. The magistracies assigned by lot generally had terms of service of 1 year. A citizen could not hold any particular magistracy more than once in his lifetime, but could hold other magistracies. All male citizens over 30 years of age, who were not disenfranchised by atimia, were eligible. Those selected through lot underwent examination called dokimasia in order to avoid incompetent officials. "