I noticed that constructing a set from a given list of numbers in order to contain only unique numbers returns always a sorted set. I read that a set is not ordered, so what am I missing here?
I run this simple code a few times, printing always an orderd list:
import random
random_list = [random.randrange(1, 100) for i in range(1000)]
print(set(random_list))