diff --git a/autogen/lua_definitions/functions.lua b/autogen/lua_definitions/functions.lua index a73b177dc..67a1e2171 100644 --- a/autogen/lua_definitions/functions.lua +++ b/autogen/lua_definitions/functions.lua @@ -2940,19 +2940,19 @@ function position_based_random_u16() end --- @return number ---- Generates a psuedo random float between 0.0 and 1.0 +--- Generates a pseudo random float between 0.0 and 1.0 function random_float() -- ... end --- @return integer ---- Returns either 1 or -1 with a psuedo 50:50 chance +--- Returns either 1 or -1 with a pseudo 50:50 chance function random_sign() -- ... end --- @return integer ---- Generates a psuedo random integer between 0 and 65535 +--- Generates a pseudo random integer between 0 and 65535 function random_u16() -- ... end diff --git a/docs/lua/functions-3.md b/docs/lua/functions-3.md index 3672ec6e0..32fc12682 100644 --- a/docs/lua/functions-3.md +++ b/docs/lua/functions-3.md @@ -100,7 +100,7 @@ Sets the current object's position to random integers between 0 and 65536 ## [random_float](#random_float) ### Description -Generates a psuedo random float between 0.0 and 1.0 +Generates a pseudo random float between 0.0 and 1.0 ### Lua Example `local numberValue = random_float()` @@ -121,7 +121,7 @@ Generates a psuedo random float between 0.0 and 1.0 ## [random_sign](#random_sign) ### Description -Returns either 1 or -1 with a psuedo 50:50 chance +Returns either 1 or -1 with a pseudo 50:50 chance ### Lua Example `local integerValue = random_sign()` @@ -142,7 +142,7 @@ Returns either 1 or -1 with a psuedo 50:50 chance ## [random_u16](#random_u16) ### Description -Generates a psuedo random integer between 0 and 65535 +Generates a pseudo random integer between 0 and 65535 ### Lua Example `local integerValue = random_u16()` diff --git a/src/engine/behavior_script.h b/src/engine/behavior_script.h index 501895027..c3af4e0ed 100644 --- a/src/engine/behavior_script.h +++ b/src/engine/behavior_script.h @@ -19,11 +19,11 @@ #define obj_and_int(object, offset, value) object->OBJECT_FIELD_S32(offset) &= (s32)(value) -/* |description|Generates a psuedo random integer between 0 and 65535|descriptionEnd| */ +/* |description|Generates a pseudo random integer between 0 and 65535|descriptionEnd| */ u16 random_u16(void); -/* |description|Generates a psuedo random float between 0.0 and 1.0|descriptionEnd| */ +/* |description|Generates a pseudo random float between 0.0 and 1.0|descriptionEnd| */ float random_float(void); -/* |description|Returns either 1 or -1 with a psuedo 50:50 chance|descriptionEnd| */ +/* |description|Returns either 1 or -1 with a pseudo 50:50 chance|descriptionEnd| */ s32 random_sign(void); void stub_behavior_script_2(void);