File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
exercises/concept/captains-log/docs Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments