add chance compute

add chance compute