Files
DataStructureAndAlgorithm/2023206/check_tree.py
2023-11-29 16:26:24 +08:00

9 lines
201 B
Python

import random
size = 1000
arr = list(range(0, size))
random.shuffle(arr)
with open("random_num.txt", 'w') as f:
f.write("%d\n" % size)
for i in arr:
f.write("%d " % i)
f.write('\n')