Skip to content

Instantly share code, notes, and snippets.

@ThoenigAdrian
Created January 26, 2022 19:10
Show Gist options
  • Save ThoenigAdrian/6b1a4d4f71541014a5fa56b7c2cdb4d5 to your computer and use it in GitHub Desktop.
Save ThoenigAdrian/6b1a4d4f71541014a5fa56b7c2cdb4d5 to your computer and use it in GitHub Desktop.
float rand_FloatRange(float a, float b)
{
return ((b - a) * ((float)rand() / RAND_MAX)) + a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment