aboutsummaryrefslogtreecommitdiff
path: root/ponysay.py
diff options
context:
space:
mode:
Diffstat (limited to 'ponysay.py')
-rwxr-xr-xponysay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponysay.py b/ponysay.py
index 0728666..c6c83f8 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -119,7 +119,7 @@ class ponysay():
if names == None:
names = list(ponies.keys())
- return ponies[names[random.randrange(0, len(names) - 1)]]
+ return ponies[names[random.randrange(0, len(names))]]
'''
Returns a list with all (pony, quote file) pairs