Hacker News new | ask | show | jobs
by iverjo 2594 days ago
I think you could shave off 8 characters by doing

  0|Math.random()*3
instead of

  parseInt(Math.random()*3)