Last active
January 8, 2019 20:59
-
-
Save ziggi/26281856399e304bd66c812fa07e4b47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stock Float:frandom(Float:max) | |
{ | |
return floatdiv(float(random(0)), floatdiv(float(cellmax), max)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stock Float:mathfrandom(Float:min, Float:max) | |
{ | |
return floatadd(frandom(floatsub(max, min)), min); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment