Created
January 11, 2018 11:21
-
-
Save bganicky/f0ef045eb7e247441e62d2bdaa854f7f 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
| const getRandomInt = max => Math.floor(Math.random() * Math.floor(max)) | |
| const candidates = ['drahos', 'horacek', 'hilser', 'fischer'] | |
| const myVote = candidates[getRandomInt(candidates.length)] | |
| console.log(myVote) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment