import numpy as np vector = np.random.randint(10, 50, size=40) print(sorted(vector))