Skip to content

Instantly share code, notes, and snippets.

@oerpli
Created December 13, 2015 12:53
Show Gist options
  • Save oerpli/214856850ea0b6c0b336 to your computer and use it in GitHub Desktop.
Save oerpli/214856850ea0b6c0b336 to your computer and use it in GitHub Desktop.
std::binomial_distribution<int> binomV(verticecount,1.0/verticecount)
int count = binomV(gen);
for(int i = 0; i < count;i++){
//swap
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment