as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
write a python program to create a set of random numbers.
user
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))
assistant