This commit is contained in:
Agent X 2024-12-08 18:49:09 -05:00
parent f9d560aa78
commit bdf908ea7e
3 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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()`

View file

@ -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);