Python list with no duplicate numbers
<p>I'm working on a bingo card, but I cannot seem to generate different numbers using randint. This time it may have all different numbers in b, but the next time, it has a couple duplicate numbers.</p>

<p>How do I make it so it generates different numbers without duplicates?</p>

<p>Thanks.</p>

<pre><code>import random

class Card:
    def __init__(self):
        self.b = []
        self.i = []
        self.n = []
        self.g = []
        self.o = []

        for x in range(0, 5):
            r = random.randint(1, 15)
            self.b.append(r)

        print(self.b)
        print(self.i)
        print(self.n)
        print(self.g)
        print(self.o)

p = Card()
</code></pre>
