From 0adde0c117ed4d3f48615bbe90f567eb8e0e0a06 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 2 Nov 2003 03:39:28 +0000 Subject: [PATCH] Use randint instead --- src/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins.py b/src/plugins.py index 376b2d84b..d56c623c5 100644 --- a/src/plugins.py +++ b/src/plugins.py @@ -329,7 +329,7 @@ def standardSubstitute(irc, msg, text): text) t = pow(2,30)*random.random()+time.time()/4.0 text = randomdatere.sub(time.ctime(t), text) - text = randomintre.sub(random.random(), text) + text = randomintre.sub(str(random.randint(-1000, 1000)), text) text = whore.sub(msg.nick, text) text = botnickre.sub(irc.nick, text) text = todayre.sub(time.ctime(), text)