original_string: private function get_target_user() {
  
          if (!$this->fixeddataset) {
              $userid = $this->userids[rand(1, self::$paramusers[$this->size])];
          } else if ($userid = current($this->userids)) {
              // Moving pointer to the next user.
              next($this->userids);
          } else {
              // Returning to the beginning if we reached the end.
              $userid = reset($this->userids);
          }
  
          return $userid;
      }
code: private function get_target_user() {
  
          if (!$this->fixeddataset) {
              $userid = $this->userids[rand(1, self::$paramusers[$this->size])];
          } else if ($userid = current($this->userids)) {
              // Moving pointer to the next user.
              next($this->userids);
          } else {
              // Returning to the beginning if we reached the end.
              $userid = reset($this->userids);
          }
  
          return $userid;
      }
code_tokens: private function get_target_user ( ) { if ( ! $ this -> fixeddataset ) { $ userid = $ this -> userids [ rand ( 1 , self :: $ paramusers [ $ this -> size ] ) ] ; } else if ( $ userid = current ( $ this -> userids ) ) { // Moving pointer to the next user. next ( $ this -> userids ) ; } else { // Returning to the beginning if we reached the end. $ userid = reset ( $ this -> userids ) ; } return $ userid ; }
docstring: Gets a user id.
  
  Depends on $this->fixeddataset.
  
  @return int A user id for a random created user
docstring_tokens: Gets a user id .