/Scrambled-Number-Generator

Scrambled Number Generator

Primary LanguageJavaScript

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.

Each call to this function with the same input, will generate the same n unique numbers but will have a different and random order.

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.