diff options
Diffstat (limited to 'Demo/tkinter/guido/electrons.py')
-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() |