Amidakuji Generator
Create an animated ladder lottery (Ghost Leg).
Share the URL so everyone can draw lots on their own phones.
About
Easily create an "Amidakuji" (Ladder Lottery) in your browser. Perfect for deciding who pays the bill, assigning tasks, or exchanging gifts.
Just input the participant names and possible results. The ladder is generated automatically. The animated tracing adds suspense and excitement!
You can share the generated ladder via a URL link, allowing friends and colleagues to trace their own paths on their smartphones.
How to Use
Input Data
List participants and results (one per line). Both lists must have the same number of items.
Draw Lots
Click 'Create' to see the ladder. Tap a name at the top to watch the animated path down to the hidden result.
Share with URL
Click 'Share' to copy an encoded link. Send it to friends so they can draw on their own devices.
Glossary
- Amidakuji (Ghost Leg)
- A traditional Japanese lottery method consisting of vertical lines and horizontal connecting "bridges." Participants choose a top starting point and follow the line downwards; every time they hit a horizontal bridge, they must turn horizontally to the adjacent vertical line, eventually reaching a hidden result at the bottom. It guarantees a fair, 1-to-1 mapping of inputs to outputs.
- Horizontal Lines (Bridges)
- The rungs connecting adjacent vertical lines in an Amidakuji. These bridges alter the path, creating unpredictable results.
- Random Generation
- A feature that uses a program to randomly determine the position and number of horizontal lines. Unlike hand-drawn ladders which can show bias, this ensures a perfectly balanced and fair distribution.
- Animated Tracing
- A visual feature that tracks the path from the starting point to the result. It displays the movement along the lines in real-time, building anticipation before revealing the outcome.
- Canvas Rendering
- A technology using the HTML5 Canvas element to draw the Amidakuji lines and animations directly in the browser, providing instant results without requiring server communication.
- Participant Setup
- The function to set the number of people participating in the draw and their names. You can also customize the number of winning (prizes) and losing outcomes freely.
- Result Fairness
- Mathematically, an Amidakuji is equivalent to a "permutation." Provided the placement of horizontal lines is sufficiently random, it is algebraically guaranteed that every participant has an equal probability of reaching any given outcome.
FAQ
- Q.Are the Amidakuji results sent to a server?
- No. All generation, drawing, and result calculation are completed entirely within your browser. Participant names and outcomes are never sent to our servers.
- Q.Is there a limit to the number of participants?
- The tool works best with up to 30 participants for optimal viewing on desktop displays (fewer on mobile). While technically capable of more, the lines might become too dense to easily follow.
- Q.Can I share the created Amidakuji with others?
- Yes! By clicking the "Share" button, you can generate a unique URL containing your setup. When others open this link, they will see the exact same ladder and can choose their own lines.
- Q.Is it really completely random and fair?
- Yes. The algorithm uses a pseudorandom number generator to place the horizontal bridges, ensuring there is no predictable pattern. Amidakuji are mathematically proven to provide a 1-to-1 match, so everyone has an equal chance.
- Q.Why are the path animations moving slowly?
- The animation tracks the line deliberately to build suspense. If you want to skip the animation and see the results instantly, you can click the "Reveal All Results" button.
- Q.Can I use emojis in the names or results?
- Yes, you can freely use emojis, symbols, and text from any language in both the participant names and the outcome lists.
- Q.What happens if the number of names and results don't match?
- The tool requires an equal number of participants and results. If there is a mismatch, you will be prompted to adjust the lists. For "losing" entries, simply add enough blank spaces or designated "lose" texts to make the counts equal.
Use Cases
Paying the Bill
Turn deciding who pays the restaurant bill into a fun mini-game.
Task Assignment
Assign chores, presentation order, or roles randomly and fairly.
Secret Santa / Gift Exchange
Determine who gives a gift to whom using the ladder.