import random print( "Lottary Numbers:" ) def n(): numbers = range(1, 40) return random.sample(numbers, 6) def main() : print(n()) main() random.randint(1,40)