int32 i1
int32 i2
bool32 trig
int32 o
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_i2 : inlet_i1;