How were juries chosen in Ancient Greek?

https://greece.mrdonn.org/athenscourt.html

i copied from wikipedia.

These law courts consisted of many jurors who were male and over the age of thirty; most of which were farmers. The amount was different for each trial but was around several hundred to several thousand.They had an odd amount of jurors to prevent a tie and the jurors were picked by lot.