ilvl = clvl + rnd[10] - 5
exceptional chance = 1 + (ilvl - excep qlvl) * GambleUber / 100
elite chance = 1 + (ilvl - elite qlvl) * GambleUltra / 100

Exceptional value

Elite value

Character level

Item base level