Magic The Gathering Random Card Generators!

I’ve recently gotten back into Magic the Gathering after nearly 20 years of not playing the well-known card game. It's just as popular, if not more than before. For my final project, I thought it would be fun to play the API created by Scryfall and some code provided by Will Luft, which I forked to pull specific types of cards from over 23,000 cards currently in the game's library. Using the API, javascript, and JSON, these generators pull the name, mana cost, color, and descriptive text of each individual card. Prompting specific search queries allowed me to get very detailed results, while also randomizing the card drawn from those results.

Below you’ll find the first of several random card generators. It draws a completely random card from the 23,000+ in the game’s library. The navigation bar to the left will guide you to additional generators. Some draw radomly from specific sets, others from specific colors, and there's even one that draws cards only drawn from one particular artist.



Random Magic the Gathering Card Generator

Each button press reveals 1 of 23,000+ possible cards from the MTG card library.

Commander
Card

Card Name

Card Type

Mana Cost

Color Id

Oracle text

EDH Rec