Generates a random integer value in uniform distribution from
hi each time the trigger signal changes from nonpositive to positive values.
Lower limit of the output range.
Upper limit of the output range.
The trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive.