If (((_ok)? true: (Math.random() 0.1))) {return res;} Posted by neo2001 on Wednesday January 27, 2016 @12:47PM from the github.com dept. https://github.com/mongodb/mongo-java-driver/blob/1d2e6faa80aeb5287a26d0348f18f4b51d566759/src/main/com/mongodb/ConnectionStatus.java#L213 ( 3 comments | 8 points | on HN )