The total number of registered voters in any state, county, district and precinct is known before the election.
Allot ONLY THAT NUMBER OF BALLOTS to those polling places, with a known number of extras for soiled ballots or provisionals................
BUT, they are not updated to reflect recent deaths, so the number of registered voters is always too high.