Added roll probability calc function