User Tools

Site Tools


phpsnippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
phpsnippets [2009/08/23 18:58] – removed a " 88.73.216.78phpsnippets [2009/11/23 11:49] (current) – Add mighty “-1” 212.84.235.66
Line 115: Line 115:
     $tresholds = array();     $tresholds = array();
     for($i=0; $i<=$levels; $i++){     for($i=0; $i<=$levels; $i++){
-        $tresholds[$i] = pow($max - $min + 1, $i/$levels) + $min;+        $tresholds[$i] = pow($max - $min + 1, $i/$levels) + $min - 1;
     }     }
  
phpsnippets.1251053893.txt.gz · Last modified: 2009/08/23 18:58 by 88.73.216.78