Card shuffles: Difference between revisions

Modified task description
(→‎{{header|REXX}}: added the REXX computer programming language.)
(Modified task description)
Line 1:
[[Category:Games]]
 
{{draft task|Games}}{{clarified-review}}
 
There are many techniques that people use to shuffle [[Playing cards|cards]] for card games. Some are more effective than others.
Line 16:
One iteration of the riffle shuffle is defined as:
# Split the deck into two piles
# Merge the two piles by alternating taking one card from the top orof bottomeither pile in proportion to (the samenumber throughoutof cards remaining in the wholepile. mergeTo start with the probability for both piles will be 26/52 (50-50), ofthen each25/51-26/51 pileetc etc as the riffle progresses.
# The merged deck is now the new "shuffled" deck
 
2,172

edits