changed random point selection

added number of iterations as command line argument and changed random point generation. Resolves #24