Generate 4000 unique pseudo-random cartesian coordinates FASTER?
<p>The range for x and y is from 0 to 99.</p>

<p>I am currently doing it like this:</p>

<pre><code>excludeFromTrainingSet = []
while len(excludeFromTrainingSet) &lt; 4000:
    tempX = random.randint(0, 99)
    tempY = random.randint(0, 99)
    if [tempX, tempY] not in excludeFromTrainingSet:
        excludeFromTrainingSet.append([tempX, tempY])
</code></pre>

<p>But it takes ages and I really need to speed this up.</p>

<p>Any ideas?</p>
