Guest User

Untitled

a guest
Jun 18th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def RandomChance(percent):
  2. _rand = random.uniform(0,100)
  3.  
  4. _threshold = 100-percent
  5.  
  6. if _rand > _threshold:
  7. return True
  8. else:
  9. return False
Add Comment
Please, Sign In to add comment