RPG attributes generator: Difference between revisions
add BQN
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(add BQN) |
||
Line 1,010:
<pre>Igual que la entrada de FreeBASIC.</pre>
=={{header|BQN}}==
Slightly different from the APL solution primarily due to builtin differences.
<syntaxhighlight lang="bqn"> _while_←{𝔽⍟𝔾∘𝔽_𝕣_𝔾∘𝔽⍟𝔾𝕩}
(2-modifier block)
Roll←{𝕊:{𝕊:((+´-⌊´)1+4⊸•rand.Range)¨6⥊6}_while_{(75>+´𝕩)∨2>+´15≤𝕩}⟨⟩}
(function block)
Roll@
⟨ 11 16 12 10 16 13 ⟩</syntaxhighlight>
=={{header|C}}==
{{trans|Go}}
|