Random Number Problem

gsl documentation - https://www.gnu.org/software/gsl/manual/html_node/Sampling-from-a-random-number-generator.html

1) Install Xcode
2) Install homebrew - http://brew.sh
3) Install gsl libraries - brew install gsl - http://connor-johnson.com/2014/10/12/using-the-gnu-scientific-library-on-a-mac/
4) Create Xcode project (2nd option in the start up menu)
5) Include libraries in the project Build Settings - http://stackoverflow.com/questions/35499689/using-gsl-with-xcode-7-link-error
	2	Next, in your Xcode target, two flags must be set in Build Settings
a. Search Paths/Header Search Paths: /usr/local/include
b. Linking/Other Linker Flags: -I/usr/local/include -L/usr/local/lib -lgsl -lgslcblas

6) change working directory so that the output file is put in a relevant folder - http://forums.macrumors.com/threads/cant-read-text-input-in-xcode-4-c-language.1285568/ - http://forums.macrumors.com/threads/where-does-xcode-save-a-dat-file.1354314/