Skip to main content
added 136 characters in body
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

APLDyalog APL, 7 bytes

10⊥?5⍴6

Try it online with theon ngn/apl demoTryAPL.

How it works

    5⍴6  Yield (6 6 6 6)
   ?     Roll; turn each 6 into a random integer between 1 and 6.
10⊥      Decode with base 10.

APL, 7 bytes

10⊥?5⍴6

Try it online with the ngn/apl demo.

Dyalog APL, 7 bytes

10⊥?5⍴6

Try it online on TryAPL.

How it works

    5⍴6  Yield (6 6 6 6)
   ?     Roll; turn each 6 into a random integer between 1 and 6.
10⊥      Decode with base 10.
Source Link
Dennis
  • 210.6k
  • 41
  • 370
  • 825

APL, 7 bytes

10⊥?5⍴6

Try it online with the ngn/apl demo.