"The Machine of Death", edited by Ryan North (et al.), is an anthology of original stories bound together by a central premise. A machine was invented that can tell how you are going to die. No dates, no details. Just a slip of paper with a few words spelling out your ultimate fate -- at once all-too specific and maddeningly vague.
From the humorous to the adventurous to the mind-bending to the touching, the writers explore what the world would be like if a blood test could determine your means of death.
But don't think for a moment this is a book entirely composed of stories about people meeting their ironic dooms. There is some of that, of course. But more than that, this is a genre-hopping collection of tales about people who have learned more about themselves then perhaps they should have, and how that knowledge affects their relationships, their perception of the world, and how they feel about themselves.
And don't forget the follow-up to "Machine of Death", entitled appropriately, "This is How You Die".
Find these books under SF MACHINE and SF THIS IS HOW, respectively.