Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Python (http://www.programmingforums.org/forum43.html)
-   -   Random Number Generating - What's The Function? (http://www.programmingforums.org/showthread.php?t=354)

G.I.Josh Aug 12th, 2004 11:48 PM

I know that there is a built in Python function to generate a random number. However, I can't seem to find it. What is it, and what is the proper way of telling it the range of numbers to choose from? Thanks a bunch.

Oh, and on a related note. I'm about to finish the "Non Programmers Python Tutorial," so can you recomend something easy but more in depth to read next? Again, thank you. :)

Kylixen Aug 13th, 2004 8:18 AM

http://www.diveintopython.org/

:

import random

random.random()



All times are GMT -5. The time now is 12:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC