$trans = ['Common', 'Common', 'Common', 'Common', 'Uncommon', 'Uncommon', 'Uncommon', 'Rare'];
shuffle($trans);
for ($i = 1; $i <= $t->handSize(); $i++) {
$rarity = $trans[$i-1];
$t->setCard('my', $i, $t->drawCard($t->myDeck()->$rarity, $t->myData()->Hand, $i, 'drawCardList'));
}
$t->noNextCard();