Untitled
public text v1 · immutable
import random
class A:
def a(self):
x = random.random()
print x
class B:
def b(self):
x = random.random()
print x
random.seed(33)
aa = A()
aa.a()
bb = B()
bb.b()
---------------------------
$ python ~/scope.py
0.570328423137
0.632232995579