Creating a seismograph

Is it possible to write code that would create an animation that reasonably mimics the effect of a seismograph reading an earthquake? I’m not an advanced actionscript user so I have no idea how I might go about this.