Lerp()
On this page
Lerp(from_value: float, to_value: float, weight: float) -> floatInterpolate two float values.
Returns: Float.
Lerp(10.0, 20.0, 0.25)This wrapper uses lerpf; use native vector/color methods for those types.
RandomInteger()#
RandomInteger(minimum: int, maximum: int) -> intChoose an integer including both endpoints.
Returns: Integer.
RandomInteger(1, 6)Randomize()#
Randomize(seed_value: int = -1) -> voidReseed global randomness, or use normal randomization when the supplied seed is negative.
Returns: Void.
Randomize(1234)A seed affects the shared random sequence. A native RandomNumberGenerator can keep a separate sequence.
RandomFloat()#
RandomFloat(minimum: float = 0.0, maximum: float = 1.0) -> floatChoose a float within the supplied interval.
Returns: Float.
RandomFloat(0.25, 0.75)