```
import random
NumberOfPoints = IN[0]
MinimumDistance =IN[1]
MaximumDistance = IN[2]
RepeatNumber=IN[3]
outputList=[]
def RandomNumberRange(NumberOfPoints,MinimumDistance,MaximumDistance):
d = sorted(random.randint(0, MaximumDistance-1) for _ in range(NumberOfPoints))
o = [b - a for a, b in zip([0] + d[:-1], d)]
RandomNumbers=([i * MinimumDistance + sum(o[:i + 1]) for i in range(NumberOfPoints)])
return RandomNumbers
if not isinstance(NumberOfPoints, list):
NumberOfPoints = [NumberOfPoints]
for n in NumberOfPoints:
processed = RandomNumberRange(NumberOfPoints,MinimumDistance,MaximumDistance)
outputList.append(processed)
OUT = outputList
```

I am trying to understand python but i am at a point i am taking two steps forward but also two steps back.

At the moment i am trying that my script accepts the list, so i get a list of 20 random points and a list of 21 random points.

The next step, (but i can’t get over this first hurdle) is that i want list 0 to have 4 sublists of 20 random numbers and list 1 to have 6 sublists of 21 random number.

i know my problem is with the range…i need something of an extra for i in… but how