Choose Challenge Rating, if it's a hoard or not, then Roll Loot!
Based on the tables and rules in the Dungeon Master's Guide, pages 133-149.