diff options
author | Guido van Rossum <guido@python.org> | 1998-05-20 17:13:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-20 17:13:01 (GMT) |
commit | 6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5 (patch) | |
tree | 07dc4e0ed7584d72e85f9daa4afdad6e0d650d2e /Demo/tkinter | |
parent | b26a1b4e2b99f4473c2133a2206b782a7fa57932 (diff) | |
download | cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.zip cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.gz cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.bz2 |
whrandom -> random
Diffstat (limited to 'Demo/tkinter')
-rwxr-xr-x | Demo/tkinter/guido/electrons.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/tkinter/guido/electrons.py b/Demo/tkinter/guido/electrons.py index 377c9ed..e1fe1cb 100755 --- a/Demo/tkinter/guido/electrons.py +++ b/Demo/tkinter/guido/electrons.py @@ -41,12 +41,12 @@ class Electrons: self.tk.update() def random_move(self,n): - import whrandom + import random c = self.canvas for i in range(1,n+1): p = self.pieces[i] - x = whrandom.choice(range(-2,4)) - y = whrandom.choice(range(-3,4)) + x = random.choice(range(-2,4)) + y = random.choice(range(-3,4)) c.move(p, x, y) self.tk.update() |