🎁 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)中使用
- 計算結果僅供參考,請以實際應用場景為準