diff options
Diffstat (limited to 'docs/src/components/Examples/Functions/random-index.js')
-rw-r--r-- | docs/src/components/Examples/Functions/random-index.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/docs/src/components/Examples/Functions/random-index.js b/docs/src/components/Examples/Functions/random-index.js deleted file mode 100644 index a55487da5..000000000 --- a/docs/src/components/Examples/Functions/random-index.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Random Index from Array - * @param {Number} length - Length of Array - * @returns Random Index from the Array - */ - -const randomIndex = (length) => Math.round(Math.random() * (0-length)) + length - 1 - -export default randomIndex
\ No newline at end of file |