Advertisement
Guest User

Wow Drop Chance Simulator Mannaroth

a guest
Dec 2nd, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import random
  2. drop_chance = 0.3
  3. kills = 310
  4. players = 10000
  5. attempts = 0
  6. loot_drop = 0
  7. loot_chance = 0
  8.  
  9.  
  10. for k in range(players):
  11. farming = 0
  12. for i in range(kills):
  13. if farming == 0:
  14. attempts +=1
  15. loot = (random.randrange(1,1001))/10
  16. if loot <= drop_chance:
  17. loot_drop += 1
  18. farming = 1
  19. print('LOOT DROP #' , loot_drop, "ON ATTEMPT #", attempts)
  20.  
  21.  
  22. loot_chance = round((loot_drop/players)*100,2)
  23. print('\nTotal Loot Drops:', loot_drop, '\nTotal Attempts:', attempts, '\nLoot Chance at',players,'player(s) with',kills,'kills each:',loot_chance,'%')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement