Input-Output ] Statistics ] Computations ] Error trapping ] Functions ] Strings ] Filing ] Graphing ] [ Randomizing ] Sorting ]

 

 


Randomization

1.   In bridge, each of the four players is dealt 13 cards from a "well-shuffled" deck.  Carry out a simulation to find out how likely a bridge player is to be dealt a hand containing exactly five spades and five clubs along with three red cards. 

2 .  Create a participant randomizer for use in psychology experiments.  The program should ask how many groups are to be run and how many participants are needed per group.  The output will be a schedule that the researcher can use to assign the volunteers randomly to groups as they are dragged out of the introductory psych class.

2.  (For baseball fans only)  When I was a lad I played a wonderful game called All-Star Baseball.  The players on a team were represented by individual disks.  The game was played by placed the disk over a spinner.  A player's turn at bat was simulated by the spinner.  The unique feature of the game was that each disk corresponded to an actual major league player; the area within the disk allocated to each baseball outcome was proportional to the player's lifetime record.  Thus, a power hitter would have a larger home run area than a singles hitter, and most likely a larger strikeout area as well.  The game was played by bringing one's players up to bat as in real baseball, with three outs per inning and nine innings per game.  You can use the voluminous statistics provided by baseball to form a computerized version of my childhood memory.  As there is no electronic version of this classic commercially available, perhaps you could market one...