Skip to content

Instantly share code, notes, and snippets.

@collinprice
Last active December 19, 2015 02:39
Show Gist options
  • Save collinprice/5884781 to your computer and use it in GitHub Desktop.
Save collinprice/5884781 to your computer and use it in GitHub Desktop.
C++ Notes
// Create/Remove directories
#include <sys/stat.h>
// #include <sys/types.h> // Only needed if you want access to mode_t type
mkdir("folder", 0755);
rmdir("folder");
// Uniform Random
double unifRand() {
return rand() / double(RAND_MAX);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment