```interact
slider T range=0.1..3 step=0.05 default=1 label="温度"
timer t range=0..4 step=0.05 speed=50 label="采样"
computed e1 = exp(2.0 / T)
computed e2 = exp(1.2 / T)
computed e3 = exp(0.8 / T)
computed e4 = exp(0.3 / T)
computed e5 = exp(-0.5 / T)
computed Z = e1 + e2 + e3 + e4 + e5
computed p1 = e1 / Z
computed p2 = e2 / Z
computed p3 = e3 / Z
computed p4 = e4 / Z
computed p5 = e5 / Z
computed h1 = 150 * p1
computed h2 = 150 * p2
computed h3 = 150 * p3
computed h4 = 150 * p4
computed h5 = 150 * p5
computed y1 = 210 - h1
computed y2 = 210 - h2
computed y3 = 210 - h3
computed y4 = 210 - h4
computed y5 = 210 - h5
computed P1 = round(p1 * 100)
computed P2 = round(p2 * 100)
computed P3 = round(p3 * 100)
computed P4 = round(p4 * 100)
computed P5 = round(p5 * 100)
computed c1 = p1
computed c2 = c1 + p2
computed c3 = c2 + p3
computed c4 = c3 + p4
computed s0 = floor(t / 0.5)
computed u0 = select(mod(s0, 8), [0.13, 0.72, 0.41, 0.89, 0.05, 0.56, 0.33, 0.97])
computed k0 = u0 < c1 ? 0 : u0 < c2 ? 1 : u0 < c3 ? 2 : u0 < c4 ? 3 : 4
computed chip0 = select(k0, ["猫", "坐", "在", "垫", "上"])
computed u1 = select(mod(s0 + 7, 8), [0.13, 0.72, 0.41, 0.89, 0.05, 0.56, 0.33, 0.97])
computed k1 = u1 < c1 ? 0 : u1 < c2 ? 1 : u1 < c3 ? 2 : u1 < c4 ? 3 : 4
computed chip1 = select(k1, ["猫", "坐", "在", "垫", "上"])
computed v1 = s0 >= 1 ? 0.75 : 0
computed u2 = select(mod(s0 + 6, 8), [0.13, 0.72, 0.41, 0.89, 0.05, 0.56, 0.33, 0.97])
computed k2 = u2 < c1 ? 0 : u2 < c2 ? 1 : u2 < c3 ? 2 : u2 < c4 ? 3 : 4
computed chip2 = select(k2, ["猫", "坐", "在", "垫", "上"])
computed v2 = s0 >= 2 ? 0.6 : 0
computed u3 = select(mod(s0 + 5, 8), [0.13, 0.72, 0.41, 0.89, 0.05, 0.56, 0.33, 0.97])
computed k3 = u3 < c1 ? 0 : u3 < c2 ? 1 : u3 < c3 ? 2 : u3 < c4 ? 3 : 4
computed chip3 = select(k3, ["猫", "坐", "在", "垫", "上"])
computed v3 = s0 >= 3 ? 0.45 : 0
computed u4 = select(mod(s0 + 4, 8), [0.13, 0.72, 0.41, 0.89, 0.05, 0.56, 0.33, 0.97])
computed k4 = u4 < c1 ? 0 : u4 < c2 ? 1 : u4 < c3 ? 2 : u4 < c4 ? 3 : 4
computed chip4 = select(k4, ["猫", "坐", "在", "垫", "上"])
computed v4 = s0 >= 4 ? 0.32 : 0
computed hcx = k0 == 0 ? 90 : k0 == 1 ? 180 : k0 == 2 ? 270 : k0 == 3 ? 360 : 450
computed hcy = k0 == 0 ? y1 : k0 == 1 ? y2 : k0 == 2 ? y3 : k0 == 3 ? y4 : y5
computed hty = hcy - 10
computed mg = T < 0.4 ? 1 : 0
computed mb = T >= 0.4 && T < 1.5 ? 1 : 0
computed mc = T >= 1.5 ? 1 : 0
template svg: <svg viewBox="0 0 560 300" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="温度对采样的影响">
  <defs><linearGradient id="tpbg" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#12112a"/><stop offset="1" stop-color="#0c0b1d"/></linearGradient></defs>
  <rect x="0" y="0" width="560" height="300" rx="14" fill="url(#tpbg)"/>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#7fe0b2" opacity="{mg}">贪心——几乎每次都抽中最大项</text>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#dfe3f7" opacity="{mb}">均衡——热门常胜，冷门偶尔上位</text>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#e0838f" opacity="{mc}">混沌——分布被拉平</text>
  <line x1="50" y1="210" x2="510" y2="210" stroke="#3f4a78" stroke-width="1.2"/>
  <rect x="62" y="{y1}" width="56" height="{h1}" rx="3" fill="#8b7cf8" opacity="0.85"/>
  <rect x="152" y="{y2}" width="56" height="{h2}" rx="3" fill="#7f9df5" opacity="0.85"/>
  <rect x="242" y="{y3}" width="56" height="{h3}" rx="3" fill="#6fb3ee" opacity="0.85"/>
  <rect x="332" y="{y4}" width="56" height="{h4}" rx="3" fill="#5ec9f0" opacity="0.85"/>
  <rect x="422" y="{y5}" width="56" height="{h5}" rx="3" fill="#57d8d8" opacity="0.85"/>
  <text x="90" y="225" text-anchor="middle" font-size="10" fill="#c9cee6">猫</text>
  <text x="180" y="225" text-anchor="middle" font-size="10" fill="#c9cee6">坐</text>
  <text x="270" y="225" text-anchor="middle" font-size="10" fill="#c9cee6">在</text>
  <text x="360" y="225" text-anchor="middle" font-size="10" fill="#c9cee6">垫</text>
  <text x="450" y="225" text-anchor="middle" font-size="10" fill="#c9cee6">上</text>
  <text x="90" y="{y1}" dy="-5" text-anchor="middle" font-size="8.5" fill="#8a93b8">{P1}%</text>
  <text x="180" y="{y2}" dy="-5" text-anchor="middle" font-size="8.5" fill="#8a93b8">{P2}%</text>
  <text x="270" y="{y3}" dy="-5" text-anchor="middle" font-size="8.5" fill="#8a93b8">{P3}%</text>
  <text x="360" y="{y4}" dy="-5" text-anchor="middle" font-size="8.5" fill="#8a93b8">{P4}%</text>
  <text x="450" y="{y5}" dy="-5" text-anchor="middle" font-size="8.5" fill="#8a93b8">{P5}%</text>
  <text x="{hcx}" y="{hty}" dy="-14" text-anchor="middle" font-size="13" fill="#ffd98a">▼</text>
  <text x="60" y="262" font-size="9" fill="#6f7ba3">最近抽样</text>
  <text x="145" y="263" font-size="11" fill="#ffd98a">{chip0}</text>
  <text x="200" y="263" font-size="11" fill="#c9cee6" opacity="{v1}">{chip1}</text>
  <text x="255" y="263" font-size="11" fill="#c9cee6" opacity="{v2}">{chip2}</text>
  <text x="310" y="263" font-size="11" fill="#c9cee6" opacity="{v3}">{chip3}</text>
  <text x="365" y="263" font-size="11" fill="#c9cee6" opacity="{v4}">{chip4}</text>
  <text x="280" y="288" text-anchor="middle" font-size="9" fill="#6f7ba3">真 softmax · p = exp(logit / T) 归一化 · 五个 token、固定 logits</text>
</svg>
```
