Last active
August 29, 2015 14:17
-
-
Save artpar/4d8ff15d30dbf069c90b to your computer and use it in GitHub Desktop.
generate random text to be used for typing practice
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
| // choose the characters based on the fingers you want to practice | |
| var chars = "12qwaszx90opl;..c,dk'-=[]!@()_+{}\">?QWASZXOPL>".split(""); | |
| function rand(a) { | |
| return a[Math.floor(Math.random() * a.length)] | |
| } | |
| var str = ""; | |
| for (var i=0; i<600;i++) { | |
| str += rand(chars); | |
| if (i % 6==0){str += " \n"; | |
| } | |
| }; | |
| console.log(str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment