5 ms·
BTW, the random module has a "choice" function, which takes a sequence and returns a randomly chosen element from it. So instead of "result[randrange(len(resul
by foone 12y ago
BTW, the random module has a "choice" function, which takes a sequence and returns a randomly chosen element from it.
So instead of "result[randrange(len(result))]" you could have "choice(result)"