Skip to content

import random to access random.randint() #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

import random to access random.randint() #327

wants to merge 1 commit into from

Conversation

cclauss
Copy link
Member

@cclauss cclauss commented Jul 21, 2018

These kind of errors should be automatically detected by #218

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1

These kind of errors should be automatically detected by #218

flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.6.3

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./ciphers/Onepad_Cipher.py:11:17: F821 undefined name 'random'
            k = random.randint(1, 300)
                ^
1     F821 undefined name 'random'
1
```
@cclauss
Copy link
Member Author

cclauss commented Sep 22, 2018

Bump on this one.

@AnshulMalik
Copy link
Member

AnshulMalik commented Sep 28, 2018

Dupe of #339

@cclauss cclauss deleted the patch-3 branch September 28, 2018 04:48
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