RPG attributes generator: Difference between revisions

Content deleted Content added
Markjreed (talk | contribs)
→‎{{header|UNIX Shell}}: Add implementation.
Markjreed (talk | contribs)
→‎{{header|APL}}: Correct to 6 stats instead of 5
Line 549: Line 549:
{{works with|Dyalog APL}}
{{works with|Dyalog APL}}


<lang APL>roll←{(+/-⌊/)¨?¨5/⊂4/6}⍣{(75≤+/⍺)∧2≤+/⍺≥15}</lang>
<lang APL>roll←{(+/-⌊/)¨?¨6/⊂4/6}⍣{(75≤+/⍺)∧2≤+/⍺≥15}</lang>


{{out}}
{{out}}


<pre> roll''
<pre> roll''
15 15 17 15 18
10 9 13 16 11 17
roll''
roll''
18 15 15 13 16
18 14 12 8 15 14
roll''
roll''
14 17 15 16 15
16 16 15 17 16 11
roll''
roll''
15 14 8 15 12 15</pre>
18 13 17 17 14
roll''
13 18 16 16 14</pre>


=={{header|ARM Assembly}}==
=={{header|ARM Assembly}}==