Given a file consisting of the contents of a 1 dimensional spectrum, write a program that generates points randomly accord to the spectrum.