Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Too circuitous, too procedural. Just,

  return (Math.random() > 0.5);


You don't need the parentheses either.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: