function RealisticDummyContentAttribute::rand in Realistic Dummy Content 7
Returns a pseudo-random number.
The number should be the same for the same entity, so we need to know the entity.
Return value
A random or sequential number.
1 call to RealisticDummyContentAttribute::rand()
- RealisticDummyContentAttribute::ValueFromFiles in api/
includes/ RealisticDummyContentAttribute.inc - Given a list of files, return a value from one of them.
File
- api/
includes/ RealisticDummyContentAttribute.inc, line 67 - Define RealisticDummyContentAttribute autoload class.
Class
- RealisticDummyContentAttribute
- Represents either a field or a property for an entity.
Code
function rand($start, $end) {
return $this
->GetEntity()
->rand($start, $end);
}