Generates a random float value in beta distribution from
hi each time the trigger signal changes from nonpositive to positive values.
if prob1 & prob2 are less than 1, values tend towards lo & hi. if they are equal to 1, there is a linear random distribution. higher than 1, the distribution tends towards gaussian, with the possibility of a mean skewed towards the prob of the lowest value.