I want to create a large list containing 20,000 points in the form of:
[[x, y], [x, y], [x, y]]
where x and y can be any random integer bet
Try this :
import itertools x = range(0,10) aList =[] for pair in itertools.combinations(x,2): for i in range(0,10): aList.append(pair) print aList
If you want point between 0-10 with all unique and stored in a list, or you You need it random order, then use some random function .