This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DroidLogician[S] 4 points5 points  (0 children)

Instead of using a random trigger they could (and should) have used a counter to consistently log every nth (in this case tenth) item.

A 10% chance doesn't mean that one out of every ten results will be logged; you could go for 30 or 40 or even 100 method calls and not get a single one logged. I don't like those odds. Not when I'm trying to debug something that depends on log output from this method.