Randomness
From Maze
(Difference between revisions)
(→) | (→) | ||
| Line 3: | Line 3: | ||
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 built-in operating system, the KERNAL (the source of randomness that is used by BASIC) and by the sound chip, the SID. It's randomness all the way down. Producing randomness is a standard capability of the Commodore 64, provided by several different techniques. Randomness is just as important to other forms 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 built-in operating system, the KERNAL (the source of randomness that is used by BASIC) and by the sound chip, the SID. It's randomness all the way down. Producing randomness is a standard capability of the Commodore 64, provided by several different techniques. Randomness is just as important to other forms of modern computing. | ||
| − | This chapter explains what random numbers are, explaining certain different types of randomness. Then, it looks at the historical inception of functions for generating random numbers and some of the ways these random numbers have been used. The chapter considers how and why randomness is used in the arts. Through a nuanced discussion of randomness, the chapter argues that the maze pattern which emerges from 10 PRINT is not merely an artifact of ab random process, but a confluence of the randomness with other structural elements, such as the regular grid of the Commodore 64's display and the regularity of iteration. | + | This chapter explains what random numbers are, explaining certain different types of randomness. Then, it looks at the historical inception of functions for generating random numbers and some of the ways these random numbers have been used. The chapter considers how and why randomness is used in the arts. Through a nuanced discussion of randomness, the chapter argues that the maze pattern which emerges from 10 PRINT is not merely an artifact of a random process, but a confluence of the randomness with other structural elements, such as the regular grid of the Commodore 64's display and the regularity of iteration. |
Since chance is hap, the root of happy, it would seem that randomness, a type of chance, might have a happy etymology. Not so. Likely ancestors of the word "random" are found in Anglo-Norman, Old French, and Middle French and include ''randoun, raundun, raundoun, randon, randun,'' and ''rendon'' -- words indicating speed, impulsiveness, and violence. These predecessor words are found beginning around the 12th century and probably derive from ''randir,'' to run fast or gallop. Bumper stickers implore drivers to "practice random acts of kindness," but only because people in our culture fear random acts of violence so much that another phrase has become so ingrained that it can be punned upon -- and at a deeper level, perhaps, because the speed and violence of other vehicles are to be feared. While today it might be harmless for us to encounter "a random" (a person unknown to us, according to the Jargon File) sitting in the computer lab exploring a system at random, a "random encounter" centuries ago was much more likely to resemble a violent random encounter in ''Dungeons & Dragons.'' For instance, it could have been a figure on horseback hurtling through a village, trampling and slaughtering whoever he can reach. | Since chance is hap, the root of happy, it would seem that randomness, a type of chance, might have a happy etymology. Not so. Likely ancestors of the word "random" are found in Anglo-Norman, Old French, and Middle French and include ''randoun, raundun, raundoun, randon, randun,'' and ''rendon'' -- words indicating speed, impulsiveness, and violence. These predecessor words are found beginning around the 12th century and probably derive from ''randir,'' to run fast or gallop. Bumper stickers implore drivers to "practice random acts of kindness," but only because people in our culture fear random acts of violence so much that another phrase has become so ingrained that it can be punned upon -- and at a deeper level, perhaps, because the speed and violence of other vehicles are to be feared. While today it might be harmless for us to encounter "a random" (a person unknown to us, according to the Jargon File) sitting in the computer lab exploring a system at random, a "random encounter" centuries ago was much more likely to resemble a violent random encounter in ''Dungeons & Dragons.'' For instance, it could have been a figure on horseback hurtling through a village, trampling and slaughtering whoever he can reach. | ||
