From 95668cb4624da8b4c4c18b7e19cc985a88128560 Mon Sep 17 00:00:00 2001 From: Saphron <109723086+denerose@users.noreply.github.com> Date: Fri, 30 Aug 2024 23:24:41 +1000 Subject: [PATCH 1/2] Update hints.md in Captains Log --- exercises/concept/captains-log/.docs/hints.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exercises/concept/captains-log/.docs/hints.md b/exercises/concept/captains-log/.docs/hints.md index 168c3937f..faa59752e 100644 --- a/exercises/concept/captains-log/.docs/hints.md +++ b/exercises/concept/captains-log/.docs/hints.md @@ -4,10 +4,11 @@ - Java does not provide a function to choose an element from a collection at random. - Remember that you can retrieve an element from an array by its index, which is an integer. +- The `java.util.Random` class provides a method to generate a random `int` between 0 and a given maximum. ## 2. Generate a random starship registry number -- The `java.util.Random` class provides a method to generate a random `int` between 0 and a given maximum. +- The `java.util.Random` class provides an overloaded method (a variation on another method) to generate a random `int` between given minimum (inclusive) and a given maximum (exclusive). ## 3. Generate a random stardate From 748077a16b0243b85faa840a4488bfc718a07c89 Mon Sep 17 00:00:00 2001 From: Saphron <109723086+denerose@users.noreply.github.com> Date: Sat, 31 Aug 2024 23:38:21 +1000 Subject: [PATCH 2/2] Update exercises/concept/captains-log/.docs/hints.md Co-authored-by: Kah Goh --- exercises/concept/captains-log/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/captains-log/.docs/hints.md b/exercises/concept/captains-log/.docs/hints.md index faa59752e..7f05f53e1 100644 --- a/exercises/concept/captains-log/.docs/hints.md +++ b/exercises/concept/captains-log/.docs/hints.md @@ -8,7 +8,7 @@ ## 2. Generate a random starship registry number -- The `java.util.Random` class provides an overloaded method (a variation on another method) to generate a random `int` between given minimum (inclusive) and a given maximum (exclusive). +- The `java.util.Random` class provides another method to generate a random `int` between given minimum (inclusive) and a given maximum (exclusive). ## 3. Generate a random stardate