RPG attributes generator: Difference between revisions
Added 11l
Not a robot (talk | contribs) (Add CLU) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 32:
* At least 2 of the values must be 15 or more.
<p></p>
=={{header|11l}}==
{{trans|Python}}
<lang 11l>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)</lang>
{{out}}
<pre>
76 [13, 13, 11, 14, 8, 17]
</pre>
=={{header|8086 Assembly}}==
|