Oct 18, 2022
Are you sure it was a book? There was a Star Trek episode—the original series, Captain Kirk et al—with that exact plot. The computer would calculate that your side lost X number of people and send notices to that many randomly selected people to show up at the execution booths.