phpsnippets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
phpsnippets [2009/08/23 18:58] – removed a " 88.73.216.78 | phpsnippets [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< | for($i=0; $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