Example #1
0
 public static function getRandomNumber($x, $y)
 {
     /*
     srand (abs (10000 - ( $x * 1000) + $y) + RANDMAPFACTOR);
     return rand (-10000, 10000) / 10000;
     */
     return (Dolumar_Map_Map::getRandom($x, $y, 20000) - 10000) / 10000;
 }
Example #2
0
 protected function getRandom($base)
 {
     return Dolumar_Map_Map::getRandom($this->x(), $this->y(), $base);
 }