|  |
|  |
02-26-2008, 08:27 PM
|
#1 (permalink)
| Respected Member
Join Date: Aug 2002 Location: Canada Age: 20 Posts: 11,402
| Python problem I can't generate any random numbers in Python. I think I'm semi-retarded, but I know I've imported random, but randint() and the other random functions aren't working properly.
__________________ 
Watch the Game, Learn the Game, Control the Game.
To Those Who Think,
To Those Who Dare,
To Those Who Do,
To Those Who Succeed.
Success is nothing more than taking advantage of an opportunity. Quote:
Mapmaker FAQ:
1)Can the map editor-
Yes, it can.
| |
| |
02-26-2008, 08:36 PM
|
#2 (permalink)
| o
Join Date: May 2003 Posts: 3,517
| Re: Python problem . |
| |
02-26-2008, 08:59 PM
|
#3 (permalink)
| [ Official Forum Ninja ]
Join Date: Sep 2006 Location: Roanoke VA Posts: 1,404
| Re: Python problem Omg. AH IT'S A SNAKE! RUUUUN! |
| |
02-27-2008, 09:13 AM
|
#4 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 14,894
| Re: Python problem Try using seed() to seed the generator with the system time before you call any random functions.* |
| |
02-27-2008, 04:15 PM
|
#5 (permalink)
| Respected Member
Join Date: Aug 2002 Location: Canada Age: 20 Posts: 11,402
| Re: Python problem when i use seed I get. "AttributeError: 'module' object has no attribute 'seed'"
__________________ 
Watch the Game, Learn the Game, Control the Game.
To Those Who Think,
To Those Who Dare,
To Those Who Do,
To Those Who Succeed.
Success is nothing more than taking advantage of an opportunity. Quote:
Mapmaker FAQ:
1)Can the map editor-
Yes, it can.
| |
| |
02-27-2008, 11:11 PM
|
#6 (permalink)
| Aya Matsuura is awesome
Join Date: Nov 2002 Location: Trieste, Friuli-Venezia Giulia Age: 20 Posts: 14,894
| Re: Python problem And I have no idea what you are talking about because I don't program in Python.* |
| |
02-27-2008, 11:34 PM
|
#7 (permalink)
| Respected Member
Join Date: Aug 2002 Location: Canada Age: 20 Posts: 11,402
| Re: Python problem damnit!
I ****ing hate this language.
__________________ 
Watch the Game, Learn the Game, Control the Game.
To Those Who Think,
To Those Who Dare,
To Those Who Do,
To Those Who Succeed.
Success is nothing more than taking advantage of an opportunity. Quote:
Mapmaker FAQ:
1)Can the map editor-
Yes, it can.
| |
| |
02-28-2008, 07:09 AM
|
#8 (permalink)
| Respected Member
Join Date: Aug 2002 Location: Canada Age: 20 Posts: 11,402
| Re: Python problem Quote:
Originally Posted by Emperor Pan I damnit!
I ****ing hate this language. | okay never mind the damn IDE didn't import all the libraries, as I noticed random.py wasn't listed, so i manually added it and now random works. I still hate this damn language.
EDIT
didn't mean to double post, meant to edit not quote. It is way to early and im way to tired for this ****.
__________________ 
Watch the Game, Learn the Game, Control the Game.
To Those Who Think,
To Those Who Dare,
To Those Who Do,
To Those Who Succeed.
Success is nothing more than taking advantage of an opportunity. Quote:
Mapmaker FAQ:
1)Can the map editor-
Yes, it can.
| |
| | | |