Name | Modified | Size | Downloads / Week |
---|---|---|---|
License.txt | 2012-11-18 | 1.1 kB | |
README | 2012-11-18 | 660 Bytes | |
physrand.py | 2012-11-18 | 2.1 kB | |
Totals: 3 Items | 3.8 kB | 0 |
Functions: dice(numberOfSides, numberOfDice) rolls dice. numberOfSides (int) determines the number of sides on the dice. For a d6 die, this would be 6. numberOfDice (int) determines the number of dice to roll. roulette(outputType) spins a roulette wheel. outputType (string) determines the type of data that will be returned. If outputType is "list", data will be returned as ['24', 'Black']. If outputType is "string", it will return a user-friendly "24 Black". card(jokerBool) draws a single card from a deck (replacing it after). jokerBool (boolean) determines if the deck will contain jokers. coin() flips a coin and returns "Heads" or "Tails".