Y
Hacker News
new
|
ask
|
show
|
jobs
by
foone
4300 days 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)"