Skip to content

Use random.choice instead of random.randint#9

Merged
mjhea0 merged 1 commit intorealpython:masterfrom
uttamo:patch-1
Sep 29, 2017
Merged

Use random.choice instead of random.randint#9
mjhea0 merged 1 commit intorealpython:masterfrom
uttamo:patch-1

Conversation

@uttamo
Copy link
Contributor

@uttamo uttamo commented Sep 28, 2017

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

random.choice is better for selecting random elements from a list than using random.randint to generate random indices to select
@mjhea0 mjhea0 merged commit c2f695f into realpython:master Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants