Skip to main content

Number Helpers

Utility functions for working with numbers.

Functions

FunctionDescription
clampClamps a number between min and max values
randomBetweenGenerates a random number between min and max (inclusive)
randomIntBetweenGenerates a random integer between min and max (inclusive)
roundToRounds a number to specified decimal places