from db_interactions import *
from random import randint


def getNextCard(deckId):
    """
        Selects and returns a random card.
    """
    deckOfCards = getCardsForDeck(deckId)
    card = deckOfCards.order_by('?')[0]
    return card

ac1e4378e49a4b1f0b823021092627d1c92537b5
<mask token>

<mask token>


def getNextCard(deckId):
    """
        Selects and returns a random card.
    """
    deckOfCards = getCardsForDeck(deckId)
    card = deckOfCards.order_by('?')[0]
    return card

from db_interactions import *
from random import randint


def getNextCard(deckId):
    """
        Selects and returns a random card.
    """
    deckOfCards = getCardsForDeck(deckId)
    card = deckOfCards.order_by('?')[0]
    return card
