bool32 trig
int32 reso
int32 o
frac32.s.map prob
bool32.tgl on
int32 value
int32.label v
int32_t val;
int32_t val1;
int ntrig;
int rnd;
int rtrig;
val = (int32_t)(GenerateRandomNumber()) >> 4;
val1 = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 0;
rnd = 0;
rtrig = 0;
if ((inlet_trig > 0) && !ntrig) {
val = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 1;
} else if (!(inlet_trig > 0))
ntrig = 0;
rnd = val;
rnd = param_prob > val;
if (((rnd) && (inlet_trig) > 0) && !rtrig) {
if (param_value)
val1 = (int32_t)(GenerateRandomNumber() % (param_value));
else
val1 = 0;
rtrig = 1;
} else if (!(inlet_trig > 0))
rtrig = 0;
outlet_o = (param_on) ? (val1 + inlet_reso) : (inlet_reso);
disp_v = outlet_o;