Skip to content

Commit

Permalink
Update hints.md in Captains Log
Browse files Browse the repository at this point in the history
  • Loading branch information
denerose authored Aug 30, 2024
1 parent 85e331f commit 95668cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/concept/captains-log/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 95668cb

Please sign in to comment.