How to make the cards to deal randomly?

hi , i am craymel . i am trying to make a blackjack game . but first , i have to know how to make the card to deal randomly when a button is clicked . can someone show me some example . thank you very much ^^" .