Random DC Character
Generate a random DC Comics character instantly. Filter by hero, villain, or antihero. Get powers, teams, first appearance, and lore.
Click Generate Character to reveal a random DC Comics character.
About
DC Comics maintains a roster exceeding 10,000 named characters across its multiverse. Selecting one at random for tabletop RPG sessions, creative writing prompts, cosplay decisions, or trivia games requires more than a coin flip. A naive Math.random call in most browsers relies on a PRNG (xorshift128+) that can exhibit subtle bias over small sample sizes. This generator uses the crypto.getRandomValues API to source entropy from the operating system, producing uniform distribution across the candidate pool. Filter by alignment - hero, villain, or antihero - to narrow results. Each card displays canonical data: first appearance year, primary powers, team affiliations, and a concise origin note. The dataset covers characters from Action Comics #1 (1938) through modern continuity.
Limitations: the embedded dataset contains approximately 80 characters weighted toward editorial prominence. Obscure characters from Vertigo imprints or one-issue appearances are not included. All data reflects post-Crisis / Rebirth continuity where conflicts exist.
Formulas
Character selection uses cryptographic randomness to guarantee uniform probability across n candidates after filtering.
where n = total characters matching the active filter, and ci = the i-th candidate. The random index k is derived from:
To eliminate modulo bias, the implementation uses rejection sampling: values from a 32-bit unsigned integer are discarded if they fall in the incomplete final bucket. This ensures each character has exactly equal probability 1n of being selected, with no systematic skew regardless of dataset size.
Reference Data
| Character | Alias | Alignment | First Appeared | Primary Power | Team |
|---|---|---|---|---|---|
| Clark Kent | Superman | Hero | 1938 | Kryptonian Physiology | Justice League |
| Bruce Wayne | Batman | Hero | 1939 | Peak Human / Genius Intellect | Justice League |
| Diana Prince | Wonder Woman | Hero | 1941 | Amazonian Strength | Justice League |
| Barry Allen | The Flash | Hero | 1956 | Speed Force | Justice League |
| Arthur Curry | Aquaman | Hero | 1941 | Atlantean Physiology | Justice League |
| Hal Jordan | Green Lantern | Hero | 1959 | Power Ring | Green Lantern Corps |
| J'onn J'onzz | Martian Manhunter | Hero | 1955 | Shapeshifting / Telepathy | Justice League |
| Oliver Queen | Green Arrow | Hero | 1941 | Master Archer | Justice League |
| Kara Zor-El | Supergirl | Hero | 1959 | Kryptonian Physiology | Justice League |
| Victor Stone | Cyborg | Hero | 1980 | Technomorphing | Justice League / Teen Titans |
| Billy Batson | Shazam | Hero | 1939 | Magic of Shazam | Justice League |
| Zatanna Zatara | Zatanna | Hero | 1964 | Backward Magic | Justice League Dark |
| John Constantine | Constantine | Antihero | 1985 | Occultism / Cunning | Justice League Dark |
| The Joker | Joker | Villain | 1940 | Genius-level Insanity | None |
| Selina Kyle | Catwoman | Antihero | 1940 | Acrobatics / Stealth | Gotham City Sirens |
| Slade Wilson | Deathstroke | Villain | 1980 | Enhanced Physiology | Secret Society |
| Harleen Quinzel | Harley Quinn | Antihero | 1992 | Agility / Immunity to Toxins | Suicide Squad |
| Oswald Cobblepot | The Penguin | Villain | 1941 | Criminal Genius | None |
| Edward Nygma | The Riddler | Villain | 1948 | Genius Intellect | None |
| Pamela Isley | Poison Ivy | Villain | 1966 | Chlorokinesis | Gotham City Sirens |
| Thaal Sinestro | Sinestro | Villain | 1961 | Yellow Power Ring | Sinestro Corps |
| Darkseid | Uxas | Villain | 1970 | Omega Beams | Apokolips |
| Lex Luthor | Luthor | Villain | 1940 | Super Genius / Wealth | Legion of Doom |
| Ra's al Ghul | The Demon's Head | Villain | 1971 | Immortality / Swordsmanship | League of Assassins |
| Wally West | Kid Flash / The Flash | Hero | 1959 | Speed Force | Teen Titans |
| Dick Grayson | Nightwing | Hero | 1940 | Peak Acrobatics | Teen Titans |
| Jason Todd | Red Hood | Antihero | 1983 | Combat / Marksmanship | Outlaws |
| Tim Drake | Red Robin | Hero | 1989 | Detective Skills | Teen Titans |
| Damian Wayne | Robin | Hero | 2006 | Martial Arts / Assassin Training | Teen Titans |
| Black Adam | Teth-Adam | Antihero | 1945 | Magic of Shazam | Justice Society |