public function Currency($minPrice = 1, $maxPrice = null)
    {
        list($min, $max) = $this->resolveMinMax($minPrice, $maxPrice, 1000);
        $rand = mt_rand($min*100, $max*100);
        return DBField::create_field("Currency", $rand/100);
    }
public function Currency($minPrice = 1, $maxPrice = null)
    {
        list($min, $max) = $this->resolveMinMax($minPrice, $maxPrice, 1000);
        $rand = mt_rand($min*100, $max*100);
        return DBField::create_field("Currency", $rand/100);
    }
public function Currency ( $ minPrice = 1 , $ maxPrice = null ) { list ( $ min , $ max ) = $ this -> resolveMinMax ( $ minPrice , $ maxPrice , 1000 ) ; $ rand = mt_rand ( $ min * 100 , $ max * 100 ) ; return DBField :: create_field ( "Currency" , $ rand / 100 ) ; }
Generates a random price
@param integer $minPrice The minimum price
@param integer $maxPrice The maximum price
@return  Currency
Generates a random price