Well, for the random treasure, they do have a rolling mechanic that explains how common/uncommon/rares are dished out:
Even # - Common
Odd # - Uncommon
Nat 20 - Rare
Might have common uncommon flipped, but that's the gist of it.
Otherwise, yeah, it's pretty much just up to the DM on how he...