script that generates and plots random data points