public function roll($times)
    {
        $this->lastRoll = array();
        for ($i = 0; $i < $times; $i++) {
              $this->lastRoll[] = rand(1, 6);
        }
    }
public function roll($times)
    {
        $this->lastRoll = array();
        for ($i = 0; $i < $times; $i++) {
              $this->lastRoll[] = rand(1, 6);
        }
    }
public function roll ( $ times ) { $ this -> lastRoll = array ( ) ; for ( $ i = 0 ; $ i < $ times ; $ i ++ ) { $ this -> lastRoll [ ] = rand ( 1 , 6 ) ; } }
Roll the dice

@param int $times the number of times to roll.

@return void
Roll the dice