Incredible computer program

I have no idea how this works, but it does.  Over and over and over.