Difference between revisions of "CSC103 Take-Home Final Exam Spring 2012"
Line 50: | Line 50: | ||
:we make the sketch store a random number into the variable diameter, and we force this random number to be larger than or equal to 0, and less than 200. | :we make the sketch store a random number into the variable diameter, and we force this random number to be larger than or equal to 0, and less than 200. | ||
:When we call '''ellipse()''' and write <tt>random(500)</tt> for both the ''x'' and ''y'' coordinates, we make the sketch put a circle in the window at a random position, but we force the center of the circle to remain inside the window. | :When we call '''ellipse()''' and write <tt>random(500)</tt> for both the ''x'' and ''y'' coordinates, we make the sketch put a circle in the window at a random position, but we force the center of the circle to remain inside the window. | ||
+ | * Make sure you read the documentation on '''random()''' in the [http://processing.org/reference/ reference section] of [http://processing.org/ processing.org] to fully understand what it does. | ||
==Your Assignment== | ==Your Assignment== |