¡@

Home 

python Programming Glossary: rolldie

python and rolling a die a set 1000 times [closed]

http://stackoverflow.com/questions/19079214/python-and-rolling-a-die-a-set-1000-times

that each side of the die appears. Call this function rollDie . For example rollDie could return the list 100 200 300 200.. the die appears. Call this function rollDie . For example rollDie could return the list 100 200 300 200 100 100 . For this problem.. to python. this is what I have so far... import random def rollDie myList '100' '200' '300' '400' '500' '600' myList random.shuffle..

Python dice rolling simulation

http://stackoverflow.com/questions/19188546/python-dice-rolling-simulation

help. Any and all help is appreciated. Here's my code. def rollDie number one 0 two 0 three 0 four 0 five 0 six 0 for i in range.. statements. Keep your data out of your variable names def rollDie number counts 0 6 for i in range number roll random.randint..