[Tutor] Random Number Generator

bhaaluu bhaaluu at gmail.com
Tue Dec 4 20:16:21 CET 2007


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
<earlylightpublishing at yahoo.com> 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  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>


More information about the Tutor mailing list