Posts: 363
Joined: Jun 2004
Reputation:
0
i just tried random stuff on my pc that runs python 2.4.
in some strange way, nothing in the random module works.
did you get this running on pc?
Posts: 78
Joined: Mar 2006
Reputation:
0
i also tried on pc with python 2.4 now.
all works fine and the examplecode in the first post dont give's "the same numbers as in last run".
i get different numbers in every run.
Posts: 363
Joined: Jun 2004
Reputation:
0
hahahahaha
stupid me. :nuts:
i named the script random.py!
because of that, i imported my own script, and not the python random module!
Posts: 497
Joined: Aug 2004
Reputation:
0
i had this trouble try random.seed(time.time())
for sum reason (although you shouldn't need to supply this) it works.
read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!