Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
Exercise_1
==========
# Scrambled Number Generator

## Scrambled Number Generator
Create a function that takes in a number (n).

It will generate n unique numbers and return those numbers in a random order. The unique numbers must start at 0 and can range up to but not including n.

- Plan your execution on white board before forking and cloning.
- write unit tests for the generator
- should contain 1000 numbers
- generating the numbers twice should have a different order of numbers each time
- create a number generator, 1-1000
scramble the numbers
- Print the results in #main, each number on it’s own line
Each call to this function with the same input, will generate the same n unique numbers but will have a different and random order.

File structure:
- index.html
- js/exercise_1.js
- js/exercise_1.tests.js
- jasmine-2.0.0/
For Example:

```
generator(10);
```

Will generate an array of ten numbers but ordered randomly. Calling the same function with the same input of 10, will generate another array with the same ten numbers but with a different ordering.
3 changes: 3 additions & 0 deletions generator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function(n) {
// do work here
};
15 changes: 0 additions & 15 deletions index.html

This file was deleted.

181 changes: 0 additions & 181 deletions jasmine-2.0.0/boot.js

This file was deleted.

160 changes: 0 additions & 160 deletions jasmine-2.0.0/console.js

This file was deleted.

Loading