# 第21章示例:random 骰子模拟器

import random

# 1. 随机整数
num = random.randint(1, 6)
print("骰子点数:", num)

# 2. 随机选一个
print("猜拳:", random.choice(["剪刀", "石头", "布"]))

# 3. 洗牌(原地打乱)
cards = [1, 2, 3, 4, 5]
random.shuffle(cards)
print("打乱后的牌:", cards)
