es-toolkit 1.47.1-dev.1857 → 1.47.1-dev.1859
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/compat/math/random.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Generate a random number between 0 and 1.
|
|
4
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
4
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
5
5
|
* @returns A random number between 0 and 1.
|
|
6
6
|
* @example
|
|
7
7
|
* random(); // Returns a random number between 0 and 1
|
|
@@ -12,7 +12,7 @@ declare function random(floating?: boolean): number;
|
|
|
12
12
|
/**
|
|
13
13
|
* Generate a random number between 0 and max.
|
|
14
14
|
* @param max - The upper bound (exclusive).
|
|
15
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
15
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
16
16
|
* @returns A random number between 0 and max.
|
|
17
17
|
* @example
|
|
18
18
|
* random(5); // Returns a random number between 0 and 5
|
|
@@ -24,7 +24,7 @@ declare function random(max: number, floating?: boolean): number;
|
|
|
24
24
|
* Generate a random number between min and max.
|
|
25
25
|
* @param min - The lower bound (inclusive).
|
|
26
26
|
* @param max - The upper bound (exclusive).
|
|
27
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
27
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
28
28
|
* @returns A random number between min and max.
|
|
29
29
|
* @example
|
|
30
30
|
* random(1, 5); // Returns a random number between 1 and 5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/compat/math/random.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Generate a random number between 0 and 1.
|
|
4
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
4
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
5
5
|
* @returns A random number between 0 and 1.
|
|
6
6
|
* @example
|
|
7
7
|
* random(); // Returns a random number between 0 and 1
|
|
@@ -12,7 +12,7 @@ declare function random(floating?: boolean): number;
|
|
|
12
12
|
/**
|
|
13
13
|
* Generate a random number between 0 and max.
|
|
14
14
|
* @param max - The upper bound (exclusive).
|
|
15
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
15
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
16
16
|
* @returns A random number between 0 and max.
|
|
17
17
|
* @example
|
|
18
18
|
* random(5); // Returns a random number between 0 and 5
|
|
@@ -24,7 +24,7 @@ declare function random(max: number, floating?: boolean): number;
|
|
|
24
24
|
* Generate a random number between min and max.
|
|
25
25
|
* @param min - The lower bound (inclusive).
|
|
26
26
|
* @param max - The upper bound (exclusive).
|
|
27
|
-
* @param [floating] - Whether to return a floating point number. Defaults to
|
|
27
|
+
* @param [floating] - Whether to return a floating point number. Defaults to false.
|
|
28
28
|
* @returns A random number between min and max.
|
|
29
29
|
* @example
|
|
30
30
|
* random(1, 5); // Returns a random number between 1 and 5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
|
-
"version": "1.47.1-dev.
|
|
3
|
+
"version": "1.47.1-dev.1859+795a1bbc",
|
|
4
4
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
5
5
|
"homepage": "https://es-toolkit.dev",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|