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.
It was there to demonstrate a variety of ways in which the type of the return value can be inferred.