• API
• FAQ
• Tools
• Archive
daily pastebin goal
14%
SHARE
TWEET

# Untitled

a guest Mar 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. import random
2.
3. level = 0
4. HP = 8
5. rolls = []
6. LargeHP = 0
7. AverageHP = 0
8. rolls.append(8)
9. print("0 0 0 8")
10. for j in range (1000):
11.     level = 0
12.     rolls = []
13.     rolls.append(8)
14.     HP = 8
15.     for i in range(10):
16.         reRoll = 0
17.         level += 1
18.         minRoll = min(rolls)
19.         if minRoll < 5:
20.             rolls.remove(minRoll)
21.             HP -= minRoll
22.             reRoll = random.randint(1,8)
23.             rolls.append(reRoll)
24.             HP += reRoll
25.         roll = random.randint(1,8)
26.         if roll == 1:
27.             roll = random.randint(1,8)
28.         rolls.append(roll)
29.         HP += roll
30.     LargeHP += HP
31. AverageHP = LargeHP/1000
32. print("Om jag hade kört fixed hade mitt HP varit ", 8+5*(level-1), "nu är det istället ", HP)
33. print (AverageHP)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top