bool32 trig
int32 i1
int32 o
int32 a
frac32.s.map prob
int32_t val;
int ntrig;
val = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 0;
if ((inlet_trig > 0) && !ntrig) {
val = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 1;
} else if (!(inlet_trig > 0))
ntrig = 0;
outlet_o = ((val >= param_prob)) ? inlet_i1 : 0;
outlet_a = ((val < param_prob)) ? inlet_i1 : 0;