realpython / python-scripts

because i'm tired of gists
MIT License
2.08k stars 682 forks source link

Use random.choice instead of random.randint #9

Closed uttamo closed 6 years ago

uttamo commented 6 years ago

random.choice is better for selecting random elements from a list than using random.randint to generate random indices to select