Jump to content

RPG attributes generator: Difference between revisions

m
No edit summary
Line 2,105:
Just because you can, doesn't mean you should.
<lang python>
import random; print((lambda attr: f"Attributes: {attr}\nTotal: {}".format(attr, sum(attr))}")((lambda func, roll_func: func(func, roll_func, roll_func()))((lambda func, roll_func, rolls: rolls if sum(rolls) >= 75 and rolls.count(15) >= 2 else func(func, roll_func, roll_func())), lambda: [sum(sorted(random.randint(1, 6) for _ in range(4))[1:]) for _ in range(6)])))
</lang>
<pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.