This question is based on Thomas Hardy’s The theme of chance is graphically demonstrated by…