javascript implementation to find the probability of not getting two consecutive heads together when N coins are tossed
function round ( vr , digit ) { var value = parseInt ( ( vr * Math . pow ( 10 , digit ) + .5 ) ) ; return value / Math . pow ( 10 , digit ) ; }