Use randint instead

This commit is contained in:
Daniel Berlin 2003-11-02 03:39:28 +00:00
parent d557443883
commit 0adde0c117

View File

@ -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)