Greetings,
Take a look at my first Python program for an example:
http://www.geocities.com/ek.bhaaluu/python/paperock.py.txt
That should give you an idea.
Also:
You can use Python itself for getting help:
>>> help('random')
Happy Programming!
--
b h a a l u u at g m a i l dot c o m
http://www.geocities.com/ek.bhaaluu/python/index.html
On Dec 4, 2007 1:56 PM, earlylight publishing
<[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I'm a bare beginner to python (or indeed) any programming. I'm helping
> myself become more proficient by making a text adventure game. The problem
> is I need a function (or module) that will generate a random number within a
> range, say 1-20 for example. The ability to program this is beyond my
> meager abilities at the moment but I'd really like to get started. Would
> anyone out there be willing to provide me the code for me? Or at least
> point me in the right direction for finding it myself?
>
> TYIA
> :-)
>
>
> ________________________________
> Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
> _______________________________________________
> Tutor maillist - [email protected]
> http://mail.python.org/mailman/listinfo/tutor
>
>
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor