Randomness¶
Example: Random Concentric Circles¶
Example: Random Touching Circles¶
Exercises¶
Problem 4.1 Write a program to draw 100 circles at random locations with random size.
Problem 4.2 Write a program to draw concentric circles of random size.
Problem 4.3 Can you place the random concentric circles drawn in the above problem in grid?
Problem 4.4 Write a program that draws one of the two diagonals in random for each cell of a 4x4 grid. The grid is shown with a light color in the picture for your refefence and you don’t need to draw it.
Try changing the grid size to 16x16 or 32x32.