Skip to main content
deleted 5 characters in body
Source Link
12Me21
  • 6.8k
  • 1
  • 25
  • 40

SmileBASIC, 6161 58 bytes

@L
PUSH B$,RB$=B$+R()IF LEN(B$)>9THENI>8THEN R=RND(9)?B$[R];:B$[R]="
GOTO@LI=I+1GOTO@L

Each character of the infinite list is added to the end of the buffer. When the buffer length is greater than 911, a random character is printed and removed.

Function R generates the next character.

SmileBASIC, 61 bytes

@L
PUSH B$,R()IF LEN(B$)>9THEN R=RND(9)?B$[R];:B$[R]="
GOTO@L

Each character of the infinite list is added to the end of the buffer. When the buffer length is greater than 9, a random character is printed and removed.

Function R generates the next character.

SmileBASIC, 61 58 bytes

@L
B$=B$+R()IF I>8THEN R=RND(9)?B$[R];:B$[R]="
I=I+1GOTO@L

Each character of the infinite list is added to the end of the buffer. When the buffer length is 11, a random character is printed and removed.

Function R generates the next character.

Source Link
12Me21
  • 6.8k
  • 1
  • 25
  • 40

SmileBASIC, 61 bytes

@L
PUSH B$,R()IF LEN(B$)>9THEN R=RND(9)?B$[R];:B$[R]="
GOTO@L

Each character of the infinite list is added to the end of the buffer. When the buffer length is greater than 9, a random character is printed and removed.

Function R generates the next character.