mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-12 16:50:43 -05:00
Adds a public `randNum` method to the `RandomUtil` class which can be seen as a "superseeded" version of the `randInt` method. It can handle generating random numbers, including both integers or floating-point numbers with support for providing a precision. Adds a private `getNumberPrecision` method to the `RandomUtil` class which simply counts the number of fractional digits in a number. Changes `randInt` to log a debug message saying that the ability to pass it a floating-point number is deprecated.