![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
|
Hard understanding part of tutorial
http://ibiblio.org/obp/thinkCS/pytho...h/chap09.htm#4
I am doing this tutorial, but when it comes to the exercise in this part 9.4 I'm stuck, I do not understand the high and low thing, what does he mean with that? Quote:
__________________
Come in and have a talk! #programmingforums @ Freenode Specialities: Linux, XHTML/HTML and CSS. Learning: Python Folding@Home Stats System Requirements: Windows 9x/ME/2000/XP or better Okay, that makes it run on Linux right? |
|
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
High and Low are the highest and lowest numbers that the random number function can generate. random.random()'s default high and low are 1 and 0 respectively. Therefore, to generate a different high, you multiply by the high, and to generate a different low, you add the low.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|