Improve documentation for rand::random

This is now linked to in the guide, so I want to make sure it's good. This
adds a bit more explanation, and brings usage in line with current good style.
Is there a reason you removed the `if random()` part of the example as well?

Also, is it worth having a comment here indicating the inference is running "backwards"?