Skip to main content
Commonmark migration
Source Link

##Javascript, 85

Javascript, 85

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[20*r()|0]+"aeiouy"[6*r()|0]

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

Thanks C5H8NNaO4 and Howard!

##Javascript, 85

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[20*r()|0]+"aeiouy"[6*r()|0]

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

Thanks C5H8NNaO4 and Howard!

Javascript, 85

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[20*r()|0]+"aeiouy"[6*r()|0]

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

Thanks C5H8NNaO4 and Howard!

added 13 characters in body
Source Link
tomsmeding
  • 2.1k
  • 16
  • 20

##Javascript, 9085

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[~~(20*rs+="bcdfghjklmnpqrstvwxz"[20*r())]+"aeiouy"[~~(6*r|0]+"aeiouy"[6*r())];|0]

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

Thanks C5H8NNaO4 and Howard!

##Javascript, 90

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[~~(20*r())]+"aeiouy"[~~(6*r())];

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

##Javascript, 85

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[20*r()|0]+"aeiouy"[6*r()|0]

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.

Thanks C5H8NNaO4 and Howard!

Source Link
tomsmeding
  • 2.1k
  • 16
  • 20

##Javascript, 90

for(r=Math.random,s="",i=5;i--;)s+="bcdfghjklmnpqrstvwxz"[~~(20*r())]+"aeiouy"[~~(6*r())];

If run from the console, output is shown. Explicit display would add alert(s) at 8 chars, still shorter than the other JS solutions.