import random
# 最大卡片数
max_card = random.randint(1,25)
nums = []
for _ in range(max_card):
car_num = random.randint(0, 999999)
nums.append(car_num)
# nums 排序
nums.sort(reverse=True)
# print(nums)
# 讲nums中的每个数字转换为字符串
nums_str = [str(n) for n in nums]
# 数字拼接为字符串
newstr = "".join(nums_str)
print(newstr)