Skip to content

Instantly share code, notes, and snippets.

@isag
Created March 30, 2012 12:51
Show Gist options
  • Save isag/2251313 to your computer and use it in GitHub Desktop.
Save isag/2251313 to your computer and use it in GitHub Desktop.
int rand_a_b(gsl_rng *rng, int a, int b)
{
return((gsl_rng_uniform(rng))%(b-a)+a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment