Created
April 28, 2016 04:35
-
-
Save n-ari/26a7bf59db180cb49d43e33513c4e0d5 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 = """ | |
エジプトから来ました | |
/\ | |
/┳┻\ | |
/━┻┳┻\ | |
/┻┳━┻┳┻\ | |
/┳━┻┳━┻┳┻\ | |
/━┻━━┻━━/⌒\ \ | |
 ̄ ̄/ ____/⌒\⊃ | |
( / | |
\\ | |
∪ | |
""" | |
for i in [0...25] | |
beg = Math.floor(Math.random()*s.length) | |
end = Math.floor(Math.random()*(s.length-beg))+beg+1 | |
if Math.floor(Math.random()*2) is 0 | |
s = s.slice(beg,end) + s.slice(0,beg) + s.slice(end) | |
else | |
s = s.slice(0,beg) + s.slice(end) + s.slice(beg,end) | |
console.log(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment