how to do random / SystemRandom switch

Matthias Kievernagel mkiever at
Sat Apr 30 05:10:30 EDT 2011

Dear list,

In my top-level script I want to select if my program
is to use functions or the
ones. All the other modules shouldn't know about that
switch and simply use
  import random
  return random.randint(1, 6)
for example.

In C I would do a similar thing in the Makefile using
Compiler-/Link-Options (DEBUG/FINAL Build) switching
between two libraries.

Any hints are welcome, especially a search term
would be very helpful :)

Thanks in advance,
Matthias Kievernagel.

More information about the Python-list mailing list