generate and use random waveform data (in webkit browsers)