Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use random.choice instead of random.randint#9

Merged
mjhea0 merged 1 commit intorealpython:masterrealpython/python-scripts:masterfrom
uttamo:patch-1Copy head branch name to clipboard
Sep 29, 2017
Merged

Use random.choice instead of random.randint#9
mjhea0 merged 1 commit intorealpython:masterrealpython/python-scripts:masterfrom
uttamo:patch-1Copy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.