bool32.rising trigger
int32 random value
int32 max
int32_t val;
int ntrig;
val = 0;
ntrig = 0;
if ((inlet_trig > 0) && !ntrig) {
if (param_max)
val = (int32_t)(GenerateRandomNumber() % (param_max));
else
val = 0;
ntrig = 1;
} else if (!(inlet_trig > 0))
ntrig = 0;
outlet_v = val;