随机分组生成器与名字抽取器
粘贴名字列表,每行一个,即可将其随机分成指定数量的队伍或每队固定人数的队伍,也可随机抽取一个或多个名字。各队人数相差不会超过一人。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
Teachers, coaches, workshop leaders and friends organising a game night all face the same small job: split a group into teams without anyone feeling the split was rigged. Paste the names, one per line, and choose how many teams you want or how many people per team; the list is shuffled and dealt out like cards, so team sizes never differ by more than one.
The same page also picks one or more names at random, which covers raffles, choosing who presents first and deciding the order of turns. Nothing leaves your device: the names are shuffled in your browser and disappear when you close the tab.
使用方法
- Paste or type the names, one per line. Blank lines are ignored.
- Choose “Make a number of teams”, “Make teams of a set size” or “Pick names at random”.
- Enter the number of teams, the team size or how many names to pick.
- Run it, then copy or download the teams. Run it again for a new draw.
计算原理
The list is shuffled with the Fisher–Yates algorithm, using the Web Crypto API for every swap so that each order is equally likely. Names are then dealt to teams in turn (first name to team 1, second to team 2, and so on), which keeps sizes within one of each other. For a set team size, the number of teams is the number of names divided by the size, rounded up.
shuffle (Fisher–Yates with a cryptographic random source), then deal names to teams in turn计算示例
A PE teacher has 10 students and wants 3 teams. The generator shuffles the class and deals the names out, giving teams of 4, 3 and 3, different each time it runs. Asking for teams of 4 instead also produces 3 teams, because 10 ÷ 4 rounds up to 3.
示例输入和结果
10 个名字分成 3 队:人数为 4、3 和 3,名字已随机打乱
局限性
- Teams are random, not balanced by skill, age or gender.
- The draw is not stored, so it cannot be audited later; announce or save the result if fairness matters.
- The number of teams cannot be larger than the number of names.
最后更新:
常见问题
如何把班级名单分成每队 4 人的小组?
每行粘贴一个名字,选择“按每队人数分组”并输入 4。如果全班人数不能被整除,部分队伍会少一个人。
可以随机抽取一名获胜者吗?
可以。选择“随机抽取名字”并输入 1;若要一次抽取多个不同的名字,请输入更大的数字。
常见问题
Can I keep two people apart or together?
Not automatically. Run the draw and swap names by hand, or remove a pair from the list and add them to teams yourself.
Are duplicate names allowed?
Yes. Two people called Sam are treated as two separate entries, so add an initial if you need to tell them apart.
How many names can I enter?
Up to 1,000 names, separated by new lines or semicolons.
故障排除
It says there are not enough names.
Reduce the number of teams or names to pick, or add more names to the list.
Some teams have one fewer person.
The group does not divide evenly; the dealing keeps the difference to one person at most.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。