Ero sivun ”Widget:JwCurrentCharts” versioiden välillä
Järvi-meriwikistä
Rivi 633: | Rivi 633: | ||
//dist = Math.pow( dist, -10 ); | //dist = Math.pow( dist, -10 ); | ||
//total = ( Math.pow( iavg, 10 ) * dist ); | //total = ( Math.pow( iavg, 10 ) * dist ); | ||
− | random = (Math.random()-0.5)*0. | + | random = (Math.random()-0.5)*0.3; |
if ( ( (dist+random) > (1-iavg) ) ) { | if ( ( (dist+random) > (1-iavg) ) ) { | ||
aclass = 'ice1'; | aclass = 'ice1'; |