MagicTheGathering / mtg-sdk-dotnet

Magic: The Gathering SDK - C#.NET
MIT License
63 stars 22 forks source link

feature request: CardService Random() #36

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi

Is it maybe possible to make a Random() method, that when applied on the CardService returns a random Card from a random Set (so just a random card)? I saw this in a Scryfall C# library and I thought it would be nice for this library too.

Thx

jregnier commented 3 years ago

Would most likely need the web API to support this, in order for this library to do this I would need to get all cards then get the random card

ghost commented 3 years ago

If you take a random set and inside that set you take a random card, then the resulting card is random too, right? Then only all cards for that random set must be read.