ISYE 3044- Lecture23

.xlsm
Random Card Suit Value 0.248286 Ace Hearts 11 0.015261538 Jack of Hearts 0.289654 2 Hearts 2 0.0374729911 7 of Spades 0.651291 3 Hearts 3 0.594657 4 Hearts 4 0.796243 5 Hearts 5 My Hand 0.015261538 0.0679891 0.168045 6 Hearts 6 Dealer Hand 0.0374729911 0.0689678 0.312102 7 Hearts 7 0.756439 8 Hearts 8 0.902094 9 Hearts 9 0.893987 10 Hearts 10 0.015262 Jack Hearts 10 0.368901 Queen Hearts 10 0.537813 King Hearts 10 0.078227 Ace Clubs 11 0.399308 2 Clubs 2 0.067989 3 Clubs 3 0.579109 4 Clubs 4 0.571394 5 Clubs 5 0.807906 6 Clubs 6 0.200187 7 Clubs 7 0.357518 8 Clubs 8 0.130721 9 Clubs 9 0.832429 10 Clubs 10 0.093231 Jack Clubs 10 0.778675 Queen Clubs 10 0.282252 King Clubs 10 0.90412 Ace Diamonds 11 0.861374 2 Diamonds 2 0.715894 3 Diamonds 3 0.823337 4 Diamonds 4 0.909354 5 Diamonds 5 0.208769 6 Diamonds 6 0.709699 7 Diamonds 7 0.115448 8 Diamonds 8 0.713575 9 Diamonds 9 0.068968 10 Diamonds 10 0.699946 Jack Diamonds 10 0.826013 Queen Diamonds 10 0.147512 King Diamonds 10 0.50785 Ace Spades 11 0.708605 2 Spades 2 0.804476 3 Spades 3 0.828413 4 Spades 4
0.143972 5 Spades 5 0.543694 6 Spades 6 0.037473 7 Spades 7 0.085033 8 Spades 8 0.706521 9 Spades 9 0.812114 10 Spades 10 0.469738 Jack Spades 10 0.134442 Queen Spades 10 0.108758 King Spades 10
Jack of Hearts 3 of Clubs 13 7 of Spades 10 of Diamonds 17 "Shuffle" Cards (Generate random #s) "Deal" 1st card- find lowest value for 1st smallest random # "Deal" 2nd card- find second lowest value for 2nd smallest random # Deal 3 & 4 Add values
Page1of 3
Uploaded by ColonelPanther868 on coursehero.com