Y
Hacker News
new
|
ask
|
show
|
jobs
Three lines weighted random choice with Python
(
glowingpython.blogspot.com
)
2 points
by
Manuelito
5052 days ago
This post shows how to implement weighted random choice in python in just three lines of code.