Skip to main content
explanation
Source Link
xigoi
  • 7.3k
  • 2
  • 13
  • 23

Jelly, 8 bytes

³X’+ƲƬI;

Try it online!

Explanation

³X’+ƲƬI;   Main niladic link
     Ƭ     Repeat and collect results until there's a duplicate result
    Ʋ      (
³            100
 X           Choose a random number from 1 to 100
  ’          Decrement (to get a number from 0 to 99)
   +         Add to the current value
    Ʋ      )
      I    Increments (deltas)
       ;   Join with the implicit argument, 0

Jelly, 8 bytes

³X’+ƲƬI;

Try it online!

Jelly, 8 bytes

³X’+ƲƬI;

Try it online!

Explanation

³X’+ƲƬI;   Main niladic link
     Ƭ     Repeat and collect results until there's a duplicate result
    Ʋ      (
³            100
 X           Choose a random number from 1 to 100
  ’          Decrement (to get a number from 0 to 99)
   +         Add to the current value
    Ʋ      )
      I    Increments (deltas)
       ;   Join with the implicit argument, 0
Source Link
xigoi
  • 7.3k
  • 2
  • 13
  • 23

Jelly, 8 bytes

³X’+ƲƬI;

Try it online!