from random import randint


def deal_community(deck, cardCount):
    """choose cards randomly from deck"""

    deckCopy = deck[:]
    dealt = []

    for i in range(cardCount):
        val = randint(0, len(deckCopy)-1)
        dealt.append(deckCopy[val])
        del deckCopy[val]
    return dealt