public function RealisticDummyContentFieldModifier::rand in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentFieldModifier.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentFieldModifier::rand()
- 7.2 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 190
Class
- RealisticDummyContentFieldModifier
- Field modifier class.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function rand($start, $end) {
$return = realistic_dummy_content_api_rand($start, $end, $this
->getHash());
return $return;
}