MISC: Rename getRandomArbitrary (#1605)

This commit is contained in:
catloversg
2024-08-22 06:50:51 +07:00
committed by GitHub
parent 995e367432
commit 818d7446be
6 changed files with 13 additions and 13 deletions
@@ -1,5 +1,5 @@
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random#getting_a_random_number_between_two_values
export function getRandomArbitrary(min: number, max: number): number {
export function randomInRange(min: number, max: number): number {
if (min > max) {
throw new Error(`Min is greater than max. Min: ${min}. Max: ${max}.`);
}