feat(Core/Utilities): add Seconds overload for randtime (#22337)

This commit is contained in:
Jelle Meeus
2025-06-20 23:18:05 +02:00
committed by GitHub
parent e21dd80381
commit 7fc8b14e3e
2 changed files with 11 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ AC_COMMON_API uint32 rand32();
/* Return a random time in the range min..max (up to millisecond precision). Only works for values where millisecond difference is a valid uint32. */
AC_COMMON_API Milliseconds randtime(Milliseconds min, Milliseconds max);
/* Return a random time in the range min..max (up to second precision). */
AC_COMMON_API Seconds randtime(Seconds min, Seconds max);
/* Return a random number in the range min..max */
AC_COMMON_API float frand(float min, float max);