You are here

public function RealisticDummyContentFieldModifier::rand in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::rand()
  2. 3.x api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::rand()

Generate a random number, or during tests, give the first available number.

File

api/src/includes/RealisticDummyContentFieldModifier.php, line 182

Class

RealisticDummyContentFieldModifier
Field modifier class.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public function rand($start, $end) {
  $return = realistic_dummy_content_api_rand($start, $end, $this
    ->getHash());
  return $return;
}