Hi
I have a function which rand digit between a and b. it maybe 2,3 or more digits. I want to save these digits in a list and then use them in another part of my program. How can I do it?
def dela(x):
sum=0
while sum <x:
b= random.randrange (1,x-sum+1)
sum = sum+b
print b,
return sum