Is it possible to generate a random number with the upper value dependent on a response from a previous question? Thanks.

Yes. Multiply a random number that you get from Quest.IRnd() function by the value of that previous question.

“Depend” may be interpreted differently. But multiplication is probably what you need, (if 0<=r<=1 and q>=0 then 0<=rq<=q).

Best, Sergiy