Mind boggling card trick: Difference between revisions

m
corrected a misspelling, added whitespace for the last task's requirement, added whitespace before the TOC (table of contents), added punctuation to 1st two main bullets points to be consistent, as the last two have 'em.
m (→‎{{header|REXX}}: added wording to the REXX section header.)
m (corrected a misspelling, added whitespace for the last task's requirement, added whitespace before the TOC (table of contents), added punctuation to 1st two main bullets points to be consistent, as the last two have 'em.)
Line 4:
The task is to simulate the trick in a way that mimicks the steps shown in the video.
 
; 1. Cards.
# Create a <code>pack</code> of 52 cards, half red - half black.
# Give the pack a good shuffle.
; 2. Deal from the randomised pack into three stacks.
# Assemble the cards face down.
## Turn up the top card,
Line 18:
# Randomly choose that number of cards out of each stack to swap. <br>(Without knowing those cards - they could be red or black cards from the stacks, we don't know).
; 4. Order from randomness?
# Check the mathematiciansmathematician's assertion that: '''The number of black cards in the black pile equals the number of red cards in the red pile.'''
 
 
Show output on this page.
<br><br>
 
=={{header|Factor}}==