a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / getRandomInt
getRandomInt(
min
,max
):number
Generates a random integer between the specified minimum and maximum values.
• min: number
The minimum value (inclusive).
• max: number
The maximum value (inclusive).
number
A random integer between min and max.
getRandomInt(1, 10); // A random integer between 1 and 10