From 102a57807214d1dd0a9ebc42954a4aa38dc31307 Mon Sep 17 00:00:00 2001 From: ArtistGodGun <60863363+ArtistGodGun@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:47:11 +0900 Subject: [PATCH 1/5] =?UTF-8?q?#1724=20random=20min=20max=20=EA=B3=BC?= =?UTF-8?q?=EC=A0=9C=20=EB=B2=88=EC=97=AD11=EB=B2=88=EC=A7=B8=EC=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-js/05-data-types/02-number/8-random-min-max/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/02-number/8-random-min-max/task.md b/1-js/05-data-types/02-number/8-random-min-max/task.md index 7037cfcbb9..f9cebd40a0 100644 --- a/1-js/05-data-types/02-number/8-random-min-max/task.md +++ b/1-js/05-data-types/02-number/8-random-min-max/task.md @@ -8,7 +8,7 @@ The built-in function `Math.random()` creates a random value from `0` to `1` (no Write the function `random(min, max)` to generate a random floating-point number from `min` to `max` (not including `max`). -Examples of its work: +예시를 살펴봅시다. ```js alert( random(1, 5) ); // 1.2345623452 From 3c18ad2f00579538cb2f5cd25ac499785469103e Mon Sep 17 00:00:00 2001 From: Kenna Date: Fri, 1 Dec 2023 15:51:56 +0900 Subject: [PATCH 2/5] =?UTF-8?q?#1720=20random-min-max=20=ED=95=B4=EB=8B=B5?= =?UTF-8?q?=20=EB=B2=88=EC=97=AD=20=EC=B2=AB=EB=B2=88=EC=A7=B8=20=EC=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-js/05-data-types/02-number/8-random-min-max/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/02-number/8-random-min-max/solution.md b/1-js/05-data-types/02-number/8-random-min-max/solution.md index 8736c3d561..c30f95929c 100644 --- a/1-js/05-data-types/02-number/8-random-min-max/solution.md +++ b/1-js/05-data-types/02-number/8-random-min-max/solution.md @@ -1,4 +1,4 @@ -We need to "map" all values from the interval 0..1 into values from `min` to `max`. +우리는 0부터 1까지의 모든 값을 `최소값`부터 `최대값`까지의 "매핑"해야합니다. That can be done in two stages: From 7dc59dd2231699735fb9a439ab4fc58fe7846ea0 Mon Sep 17 00:00:00 2001 From: Kenna Date: Fri, 1 Dec 2023 15:51:56 +0900 Subject: [PATCH 3/5] =?UTF-8?q?#1720=20random-min-max=20=ED=95=B4=EB=8B=B5?= =?UTF-8?q?=20=EB=B2=88=EC=97=AD=20=EC=B2=AB=EB=B2=88=EC=A7=B8=20=EC=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-js/05-data-types/02-number/8-random-min-max/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/02-number/8-random-min-max/solution.md b/1-js/05-data-types/02-number/8-random-min-max/solution.md index 8736c3d561..c30f95929c 100644 --- a/1-js/05-data-types/02-number/8-random-min-max/solution.md +++ b/1-js/05-data-types/02-number/8-random-min-max/solution.md @@ -1,4 +1,4 @@ -We need to "map" all values from the interval 0..1 into values from `min` to `max`. +우리는 0부터 1까지의 모든 값을 `최소값`부터 `최대값`까지의 "매핑"해야합니다. That can be done in two stages: From 06299c39174c29581fe9b2e851a1069abcb14996 Mon Sep 17 00:00:00 2001 From: Kenna Date: Fri, 1 Dec 2023 17:38:20 +0900 Subject: [PATCH 4/5] =?UTF-8?q?#1720-random-min-max-task-1=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=EC=82=AC=ED=95=AD=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1-js/05-data-types/02-number/8-random-min-max/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/02-number/8-random-min-max/solution.md b/1-js/05-data-types/02-number/8-random-min-max/solution.md index c30f95929c..c6744d5167 100644 --- a/1-js/05-data-types/02-number/8-random-min-max/solution.md +++ b/1-js/05-data-types/02-number/8-random-min-max/solution.md @@ -1,4 +1,4 @@ -우리는 0부터 1까지의 모든 값을 `최소값`부터 `최대값`까지의 "매핑"해야합니다. +우리는 0부터 1까지의 모든 값을 `min`부터 `max`까지의 범위로 '매핑' 해야합니다. That can be done in two stages: From 8c8280f067ceb570f322d79e2d53baa88354bfc4 Mon Sep 17 00:00:00 2001 From: Kenna Date: Sun, 3 Dec 2023 18:12:40 +0900 Subject: [PATCH 5/5] =?UTF-8?q?#1720-random-min-max-task-1=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20=EC=82=AC=ED=95=AD=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02-number/8-random-min-max/solution.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/1-js/05-data-types/02-number/8-random-min-max/solution.md b/1-js/05-data-types/02-number/8-random-min-max/solution.md index 743b5e488f..719103eba8 100644 --- a/1-js/05-data-types/02-number/8-random-min-max/solution.md +++ b/1-js/05-data-types/02-number/8-random-min-max/solution.md @@ -1,8 +1,4 @@ -<<<<<<< HEAD 우리는 0부터 1까지의 모든 값을 `min`부터 `max`까지의 범위로 '매핑' 해야합니다. -======= -우리는 0부터 1까지의 모든 값을 `최소값`부터 `최대값`까지의 "매핑"해야합니다. ->>>>>>> 3c18ad2f00579538cb2f5cd25ac499785469103e That can be done in two stages: @@ -16,8 +12,7 @@ function random(min, max) { return min + Math.random() * (max - min); } -alert( random(1, 5) ); -alert( random(1, 5) ); -alert( random(1, 5) ); +alert(random(1, 5)); +alert(random(1, 5)); +alert(random(1, 5)); ``` -