Based on the tables and rules in Xanathar's Guide to Everything, pages 61-73.

NOTE: Rolls or options displayed in italics exist for the sake of speed and ease of use. They do not correspond to rolls on any table, nor do they have officially associated weightings or chances. Ignore or use them as you see fit.