I am aware that Ricochet does target crates and things, which is fine. I guess the targeting is random, because the crate was much farther away from the initial target than the other enemies. (The most annoying thing was that it didn't rebound from the crate to one of the enemies.)

I've also noticed strangeness with the RNG apparently not hitting, but after I ran a test on a 70% CTH enemy, 10 times (reloading after each attempt), I did get exactly 7 hits. It may just be confirmation bias, we remember the less than expected result (a miss) and forget the hits.