The function sample() can make a proposal for the next lottery draw:
random.sample(population, k)
population is a sequence (e.g. a list). From this list k elements will be drawn.
>>> import random
>>> print(random.sample(xrange(1,50), 6))
[31, 33, 28, 38, 15, 27]
>>> print(random.sample(xrange(1,50), 6))
[23, 31, 36, 49, 2, 28]
>>>