🎁 Event Raffle Picker
📐 工作原理与说明
参与者按换行分割去空白,≥2 人;中奖数 n 须为 1–参与者数之间的有效整数,空值 / 小数 / 零 / 超名单人数均明确提示且不抽取;20 轮 × 80ms 滚动仅为视觉动画。种子留空时用 Web Crypto 安全随机逐人抽取(拒绝采样),不生成可复算种子;填写种子时进入可复现模式(结果可由种子预测),同种子 + 同名单 + 同人数复算一致;结果以间隔号连接,历史带本地时间与抽取方式
Import or type in a name list and draw winners at random, with no-repeat draws, an explicit probability panel and a publicly reproducible process — for annual parties, classrooms and team events.
—
点击"开始"开始抽取
📚 深度解析:活动随机抽取器(年会/课堂/团建)
💡 常见使用场景
- 活动随机抽取:在文本框中输入名单后随机抽选中者,过程可公开滚动。
- 名单抽取:每行一个名字,设置抽中人数后不放回随机抽取。
- 去重抽取:避免同一人中多次,公平分配。
方法(抽取规则)
每行输入一个名字,设置抽中数量;名单内去重(不放回)抽取。前端随机,滚动动画只作展示,不改变抽取结果。
算例(演示)
50 人名单抽 3 名:每次从剩余名单中等概率抽 1 人,抽中后移出,连抽 3 次得到 3 个不同姓名;每人单次中签概率相同。
❓ 常见问题(FAQ)
- 是公平随机吗?
- 前端伪随机,名单内每人单次被抽中概率相同;结果仅作活动娱乐,不适用于需要公证的正式抽奖。
- 和 random-picker 区别?
- raffle 偏整份名单 + 滚动动画;random-picker 是轻量选项级抽取。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Reproducible draw | A seed field is provided: leave it blank for secure randomness; entering the same seed, list and winner count reproduces the same draw (and is therefore predictable) | Fair draw practice |
| Equal probability | shuffle then take in order so every entry has equal chance | Knuth shuffle |
| Duplicate winners | state in the rules whether an entry can win more than once | Fair draw practice |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准