Skip to main content
2 of 2
corrected score
Jo King
  • 47.5k
  • 5
  • 125
  • 186

APL (Dyalog), 19 bytes

{0⍳⍨256|×\⍵+⍺×0,⍳9}

Try it online!

Uses ⎕IO←1 and the fact that the highest possible output is 10.

Jo King
  • 47.5k
  • 5
  • 125
  • 186