Add librand functions. No testing has been done yet. The makefile is still mostly broken. Addresses #2 and #1 but no testing has been done