bool32 trig
bool32 output
frac32.s.map prob
bool32 on
int32_t val;
int ntrig;
int rnd;
val = (int32_t)(GenerateRandomNumber()) >> 4;
ntrig = 0;
rnd = 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;
outlet_o = (rnd) && (inlet_trig);
disp_on = outlet_o;