import random

def generate_random_set(n):
    random_set = set()
    while len(random_set) < n:
        random_set.add(random.randint(1,1000))

    return random_set
    
print(generate_random_set(10))
Write a Python program to create a set of random numbers.