This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am shanek on github. | |
* I am shanetheking (https://keybase.io/shanetheking) on keybase. | |
* I have a public key ASAfE0kK0g0FuNpQg4U_ahJVD4mg8Mskkrrvsz1mLHKuJQo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class PercentagePicker: | |
def PickRandomWord(self, setOfNumbers): | |
setOfRanges = [] | |
maxInteger = -1 | |
for miniSet in setOfNumbers: | |
temp = [miniSet[0], maxInteger + 1, maxInteger + miniSet[1]] | |
maxInteger += miniSet[1] |