5
Write a program that generates a sequence of numbers starting with zero and then 100 random integers between -9 and 9.
That sequence will be displayed like a roller coaster.
Any increasing number in the sequence will go up and any decreasing number will go down
Sample sequence:
0 1 8 5 -1 -5 7 1 3 3 4 6 9 -2 ...
Sample output
9
8 6 -2...
1 5 4
0 -1 7 3 3
-5 1
This is code golf. Shortest code in bytes by November 5th wins.
3Very similar. – Calvin's Hobbies – 2015-11-01T01:34:12.127
3
Can we use ANSI escape codes?
– Dennis – 2015-11-01T02:33:55.143This is essentially a special case of the challenge that Calvin's Hobbies linked to. – Alex A. – 2015-11-01T07:26:22.973