Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- drop_chance = 0.3
- kills = 310
- players = 10000
- attempts = 0
- loot_drop = 0
- loot_chance = 0
- for k in range(players):
- farming = 0
- for i in range(kills):
- if farming == 0:
- attempts +=1
- loot = (random.randrange(1,1001))/10
- if loot <= drop_chance:
- loot_drop += 1
- farming = 1
- print('LOOT DROP #' , loot_drop, "ON ATTEMPT #", attempts)
- loot_chance = round((loot_drop/players)*100,2)
- 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