Contents of the CHAOS.TXT file

Recently, PBS aired a special on Chaos. It prompted me to write this littleprogram to demonstrate the "Order of Chaos".

Imagine the following scenario:

You have a 2 dimensional plane. There are three points on the plane. Oneis on the upper left corner, the second is on the upper right, and the thirdis on the bottom centered. Something like this:

1---------------------------2 \ / \ / \ / \ / \ / \ / \ / 3

Suppose we select a point within the triangle at random and use this positionas a starting point. Select a random number between 1 and 3. Now, imagine aline between the starting point and the number selected. Halfway, between thetwo draw another point. Use this new point as the starting point and continueuntil you are exhausted.

You would probably expect that the trangle would eventually fill up. Butwait! Run the program called pointp.exe. This will speed things up a bita show you the "Order of Chaos".

This program was written on a 286(8) clone with a HGC. Let me know how it runson your machine. The graph drivers have been linked into a unit calleddrivers and are included in the run-time code. Source is also included foranyone who wants to modify it.