std::rand: remove the `fn main()` from the examples.
std::hashmap: add an example to mangle.
std::hashmap: add an example with the basic methods.
auto merge of #11150 : huonw/rust/moar-docs, r=alexcrichton

(I removed the `fn main` from the `std::rand` examples to make it consistent with the rest of the codebase.)