Ticket #366 (defect)

Opened 2 years ago

Last modified 2 years ago

Missing module random

Status: closed (invalid)

Reported by: pspuser Assigned to: fraca7
Priority: major Component: PythonModules
Version: current Keywords: module random
Cc:

Hi there

Im in deep trouble. Random numbers are a big part in my planned game. I got an error message on importing module "random": ImportError?: No module named random

Did you call it different in PSP-Python? Is it missing? If so, do you plan to implement it? Could you please say something about it? Greetings Tyger

Change History

04/01/07 10:58:13: Modified by pspuser

Hi! :)

Use _random

  from random import _random
  random = _random.Random()
  random.seed()
  numEl = int(round(random.random() * 9))

Ciaooo Sakya

04/01/07 12:56:36: Modified by pspuser

The random module is in this file http://fraca7.free.fr/psp.zip

You have to install these modules in ms0:/python

Ciaooo Sakya

04/01/07 13:31:02: Modified by fraca7

  • status changed from new to closed.
  • resolution set to invalid.

Yep. As specified (vaguely) in the installation guide, you must use psp.zip to have access tothe standard library.

Have fun