Hacker News new | past | comments | ask | show | jobs | submit login

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: