Just a starter for you to add to. Tap the space bar to make the bug move in circles. What else happens? Download the program and try adding some new blocks of code to make it go slower, change color, go in a bigger circle, etc..
Oh, the random variable is counting how many times the sprite is stamped on the screen. :-)