Randomness
From Maze
(Difference between revisions)
(→Introduction) | (→Introduction) | ||
| Line 1: | Line 1: | ||
| − | === Introduction === | + | === === |
An essential element of 10 PRINT CHR$(205.5+RND(1));: GOTO 10 is randomness; the program could not have anything like the same effect without it. The program uses randomness that is built in to the Commodore 64's BASIC programming language via the RND function. And the RND function is not special to the Commodore 64; it was present in the original Dartmouth BASIC. Furthermore, it's not just Commodore 64 BASIC that supplies random numbers. There are capabilities for generating random numbers that are provided by the kernal (which is used by BASIC) and by the sound chip, the SID. It's randomness all the way down. Producing randomness is a fundamental capability of the Commodore 64 and of modern computing. | An essential element of 10 PRINT CHR$(205.5+RND(1));: GOTO 10 is randomness; the program could not have anything like the same effect without it. The program uses randomness that is built in to the Commodore 64's BASIC programming language via the RND function. And the RND function is not special to the Commodore 64; it was present in the original Dartmouth BASIC. Furthermore, it's not just Commodore 64 BASIC that supplies random numbers. There are capabilities for generating random numbers that are provided by the kernal (which is used by BASIC) and by the sound chip, the SID. It's randomness all the way down. Producing randomness is a fundamental capability of the Commodore 64 and of modern computing. | ||
