1A$="[up][down][left][right]":PRINTMID$(A$,RND(.5)4+1,1)"[left]";:FORI=1TO30:NEXT:PRINT"[rvson][space][left]";:GOTO1
10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
51–60 of 62 posts
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#52 for (let i=0;i':''))
const b = document.body.style;
b['font-family'] = 'Courier New';
b['font-size'] = b['line-height'] = '16px';
https://jsfiddle.net/qxjdtru6/And a fun curvy variation:
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#53Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#54Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#55It bothers me way more than it should that this line of code has become known as "10print". Like, 95% of BASIC oneliners out there start with "10 PRINT". It's like calling a McDonald's Super Size Big Tasty Meal With Diet Coke And A Side Salad a "Mac". It should've been called 205.5+RND or something. Grmbl.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#56Earlier quoted context omitted.
RND(1) returns a value between 0 and 1, but always lower than 1. Thus, the result of 205+RND(1) will always be 205 point something, which in turn will be truncated to 205. Thus, it will always result in the same character.
I see. RND returns a float.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#57Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#58It bothers me way more than it should that this line of code has become known as "10print". Like, 95% of BASIC oneliners out there start with "10 PRINT". It's like calling a McDonald's Super Size Big Tasty Meal With Diet Coke And A Side Salad a "Mac". It should've been called 205.5+RND or something. Grmbl.
It’s like using “Dear” to refer to some particular famous letter.
Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#59Re: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 (2012)
#60It bothers me way more than it should that this line of code has become known as "10print". Like, 95% of BASIC oneliners out there start with "10 PRINT". It's like calling a McDonald's Super Size Big Tasty Meal With Diet Coke And A Side Salad a "Mac". It should've been called 205.5+RND or something. Grmbl.