Added an option to plot random points instead of just a sine wave.