Skip to content

Instantly share code, notes, and snippets.

@TorvaldsDB
Created November 10, 2019 07:07
Show Gist options
  • Save TorvaldsDB/882b1557a1f4bcd8c80d876053e8fac3 to your computer and use it in GitHub Desktop.
Save TorvaldsDB/882b1557a1f4bcd8c80d876053e8fac3 to your computer and use it in GitHub Desktop.

Revisions

  1. TorvaldsDB created this gist Nov 10, 2019.
    3 changes: 3 additions & 0 deletions sample.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    arr = [1, 2, 3, 4 , 5]

    arr[Math.floor(Math.random() * arr.length)]