Skip to main content
added 194 characters in body
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

Jelly, 3 bytes

x`X

Try it online!

Look 'ma, no Unicode!

Explanation:

x`X
 `  Make monad from dyad and use same left and right arguments
x   Repeat each element of the left argument (implicit) list its respective number of times in the right argument list
  X Random element

Jelly, 3 bytes

x`X

Try it online!

Look 'ma, no Unicode!

Jelly, 3 bytes

x`X

Try it online!

Look 'ma, no Unicode!

Explanation:

x`X
 `  Make monad from dyad and use same left and right arguments
x   Repeat each element of the left argument (implicit) list its respective number of times in the right argument list
  X Random element
Source Link
Erik the Outgolfer
  • 40.6k
  • 5
  • 45
  • 122

Jelly, 3 bytes

x`X

Try it online!

Look 'ma, no Unicode!