alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
478 stars 198 forks source link

`random(0)` description missed #1077

Open wopox1337 opened 1 year ago

wopox1337 commented 1 year ago

image The behavior is not described in the documentation of the random() native, where argument == 0. This can be confusing. https://github.com/alliedmodders/amxmodx/blob/9fbf91ded017111f35338dff502882d7049ce1f6/plugins/include/core.inc#L92-L99