The following example builds on Example 7 - 7 ; it uses the values from
random( ) to change the position of lines on the screen. When the mouse is at
the left of the screen. the change is small; as it moves to the right, the
values from random( ) increase and the movement becomes more
exaggerated. Because the random ( ) function is inside the for loop, a new
random value is calculated for each point of every line: