解决方法:

 

//use the p() function probability for true in [0,1], instead of percentages

attr my_prob=0.5

base–>

case p(my_prob): X //true

else :Y  //false