Attribute Generation Roll 3d6 in order to generate your first array. Your second array is the inverse of this (18 and 3, 17 and 4, 16 and 5, etc.). C…