First, a jury pool is created using random selection. The state/district pulls names off of lists of people such as people with driver's licenses or registered voters.
Then the court has to narrow down that list to 12 people. People who may be biased in the case or are unqualified to serve on the jury are eliminated.