Example 2

Clicking a button executes a subroutine that randomly changes the background or foreground color of this page.