Re:Wait, What?
by m12k on Thursday May 30, 2013 @08:45AM
(#5792112)
Also, if we ignore for a moment how hacky it is to implement throttling like this - why would someone write
when you could use
or just
[ Parent
| on HN ]
Because Math.random's expensive and you don't want to execute it unless you're sure.
Expensive only really matters in a loop. And this logical operator would short circuit anyway.