The usual way is to do Fisher-Yates shuffle on @cards and deal from the top with pop.
If you wish to pull from a deck with rand, splice is nice.
After Compline,
Zaxo
In reply to Re: finding and deleting an element from array
by Zaxo
in thread finding and deleting an element from array
by skaba9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |