Generate 10000 product ids with python

Python script to generate 10000 products:

import random

# Function to generate a random 7-digit product number
def generate_product_number():
    return random.randint(1000000, 9999999)

# Generate an array of 10,000 product numbers
product_numbers = [generate_product_number() for _ in range(10000)]

# Print the first 10 product numbers as a sample
print(product_numbers[:100])

Paste this script in https://www.online-python.com/ and run the script to generate 10000 products and get the first 10 (depending on what number you type in the print function).