random.random(), random not defined!?
gagsl-py2 at yahoo.com.ar
Sun Apr 20 04:12:36 EDT 2008
En Sat, 19 Apr 2008 16:28:37 -0300, globalrev <skanemupp at yahoo.se> escribió:
> do i need to import something to use random?
Let me guess: you have a script named random.py? Perhaps the same one you're executing?
In that case when you write "import random", you're importing *your* script instead of the standard one.
More information about the Python-list