Say i have five variables a,b,c,d and e which are all assigned a random number from five different ranges corresponding to to the five variables a to e.
Is there a way to assign a sixth variable say x, that chooses a random number from a range with upper value equal to the total of a+b+c+d+e?
for example, say :-
a=5 (range 0-10)
b=1043 (range 0-2000)
c=37 (range 0-38)
d=2 (range 0-100)
e=20 (range 5-30)
then x = (random number) (range 5- 1107)
Thanks for any assistance