15 lines
329 B
Text
15 lines
329 B
Text
random:seed(Int(Time().unix_time()))
|
||
V total = 0
|
||
V count = 0
|
||
|
||
[Int] attributes
|
||
L total < 75 | count < 2
|
||
attributes = (0..5).map(attribute -> (sum(sorted((0..3).map(roll -> random:(1 .. 6)))[1..])))
|
||
|
||
L(attribute) attributes
|
||
I attribute >= 15
|
||
count++
|
||
|
||
total = sum(attributes)
|
||
|
||
print(total‘ ’attributes)
|