Random MTG EDH Decklist Generator
Generate random 100-card Commander (EDH) decklists for Magic: The Gathering. Pick color identity, adjust card type ratios, and export your decklist.
Select 1–5 colors. Leave empty for colorless.
Fetching commander...
About
Commander (EDH) deckbuilding demands exactly 100 cards: 1 legendary creature as commander plus 99 singleton cards whose color identity falls within the commander's identity. Miscounting lands, violating the singleton rule, or drifting outside the color identity produces an illegal deck that any playgroup or event will reject. This generator queries the Scryfall database in real time, enforces the identity constraint Ccard ⊆ Ccmdr, applies a mana-curve heuristic, and returns a complete, rule-compliant decklist you can import directly into deck managers. It approximates a balanced distribution assuming casual power level; competitive builds require manual tuning of interaction density and win-condition redundancy.
Formulas
The EDH color identity rule constrains every card in the 99 to a subset of the commander's identity. Formally:
where Ccard is the set of mana symbols appearing in a card's mana cost, rules text, and color indicator, and Ccmdr is the commander's full color identity drawn from the set {W, U, B, R, G}.
The generator distributes nonland cards across mana values using a target curve weight vector:
where w(cmc) represents the fraction of nonland slots allocated to each mana value band. The remaining 0.36 fraction fills the land base. Total deck size is fixed:
where Nlands ≈ 36 and Nnonland ≈ 63. The singleton constraint requires all card names be unique except basic lands (ncopies ≤ 1 for nonbasics).
Reference Data
| Card Type | Recommended Count | Percentage | Role in Deck |
|---|---|---|---|
| Commander | 1 | 1% | Identity anchor, always accessible from command zone |
| Creatures | 25 - 30 | 25 - 30% | Board presence, utility, win conditions |
| Instants | 8 - 12 | 8 - 12% | Interaction, removal, counterspells, combat tricks |
| Sorceries | 6 - 10 | 6 - 10% | Board wipes, tutors, mass draw |
| Artifacts | 8 - 12 | 8 - 12% | Mana rocks, equipment, utility |
| Enchantments | 5 - 8 | 5 - 8% | Persistent effects, pillowfort, value engines |
| Planeswalkers | 0 - 3 | 0 - 3% | Recurring value, removal magnets |
| Lands | 35 - 38 | 35 - 38% | Mana base, color fixing, utility lands |
| Mana Curve ≤ 2 | 10 - 14 | - | Early ramp, interaction, card selection |
| Mana Curve 3 - 4 | 14 - 18 | - | Core engine pieces, midrange threats |
| Mana Curve 5 - 6 | 6 - 10 | - | High-impact spells, finishers |
| Mana Curve 7+ | 2 - 5 | - | Bombs, haymakers (need ramp support) |
| Card Draw Sources | 10+ | - | Prevent running out of gas in long games |
| Ramp Sources | 10 - 12 | - | Accelerate to high-impact plays |
| Removal / Interaction | 8 - 12 | - | Answer opponent threats, maintain board parity |
| Board Wipes | 3 - 5 | - | Reset when behind, punish overextension |