Created
June 8, 2018 08:11
-
-
Save udonchan/ca51b7a75eccd1e1b6d6d05f06cc0321 to your computer and use it in GitHub Desktop.
This file contains 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
s=(a)=>{for(i=a.length-1;i>0;i--){j=Math.floor(Math.random()*(i+1));[a[i],a[j]]=[a[j],a[i]]}return a};n=()=>Math.floor(Math.random()*10);console.log(s(Array.apply(null,Array(n())).map(()=>'なん').concat(Array.apply(null,Array(n())).map(()=>'なんだ'))).concat(Array.apply(null,Array(n())).map(()=>'この')).join('')+'人生は') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment