Generate code in Python create an array of 100 random integers between 1 to 1000.
Not applicable
import random

# Create an array of 100 random integers between 1 to 1000
array = [random.randint(1, 1000) for i in range(100)]
print(array)