Skip to content

Commit f2a7ef8

Browse files
Create hints.md
1 parent 77af0d8 commit f2a7ef8

File tree

1 file changed

+11
-0
lines changed
  • exercises/concept/captains-log/docs

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Hints
2+
3+
## 1. Generate a random starship registry number
4+
- To generate a random number in the range _min_ (inclusive) to _max_ (exclusive) you can use the snippet `min + Math.random()*(max - min)`.
5+
- There is a [built in function][floor] for turning a floating point number into an integer.
6+
## 2.Generate a random stardate
7+
- To generate a random number in the range _min_ (inclusive) to _max_ (exclusive) you can use the snippet `min + Math.random()*(max - min)`.
8+
## 3. Generate a random planet
9+
- You can use a randomly generated integer as an array index.
10+
11+
[floor]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor

0 commit comments

Comments
 (0)