Random Module help

Mark McEahern marklists at mceahern.com
Sun Feb 10 22:58:37 EST 2002

> I was wondering if any 1 could tell me how to use the random module for a
> blackjack game i want to make. I am a begginer so try to be easy with the
> dialouge. Thanks

What follows is a fully functioning backgammon program:

$ python
>>> import random
>>> random.randint()
>>> random.randint(1,10)


// mark

More information about the Python-list mailing list