Created
          November 10, 2019 07:07 
        
      - 
      
- 
        Save TorvaldsDB/882b1557a1f4bcd8c80d876053e8fac3 to your computer and use it in GitHub Desktop. 
Revisions
- 
        TorvaldsDB created this gist Nov 10, 2019 .There are no files selected for viewingThis 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 charactersOriginal 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)]