Created
June 7, 2022 14:29
-
-
Save spasiu/82493a815503889fa8f4102c0dd8dd15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandomNumber(cb) { | |
setTimeout(() => cb(random()), random()); | |
} | |
function random() { | |
return Math.round(Math.random() * 1000); | |
} | |
// generate an array of 64 random numbers using the getRandomNumber function. Each elment in the array must be guaranteed unique. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment