Created
June 3, 2019 20:26
-
-
Save chinskiy/4a8895af1d22a68a0b83bc24b39c5acc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def get_flag_value(flag_name, uid, pct=50): | |
random = Random() | |
random.seed("%s-%s" % (uid, flag_name)) | |
return random.randint(1, 100) <= pct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment