As the code is printed in the book, the result of sample is added to `counts` rather than `result`. The code in the repo is correct: https://github.com/JLospinoso/ccc/blob/master/chapter_18/sample.cpp#L19
As the code is printed in the book, the result of sample is added to
countsrather thanresult. The code in the repo is correct: https://github.com/JLospinoso/ccc/blob/master/chapter_18/sample.cpp#L19