# CSC127/examples/Coins.pydoc.txt David MacQuigg 9-Sept-07 # pydoc output for the Coins module >>> help(Coins) Help on module Coins: NAME Coins - This module has all the different classes of coins. FILE c:\documents and settings\dave\my documents\uofa\csc127\examples\coins.py CLASSES BiasedCoin FairCoin class BiasedCoin | A biased coin is more likely to return one result over another. | | Methods defined here: | | __init__(self, bias=0.59999999999999998) | | toss(self) | returns True if result is heads, False otherwise class FairCoin | Uses paired tosses of a biased coin to generate an unbiased result (von | Neumann's method) | | Methods defined here: | | __init__(self, bias=0.59999999999999998) | | toss(self) | Due to the symmentry of the experiment, there is equal probability | that the returned result will be True or False. DATA __all__ = ['BiasedCoin', 'FairCoin']