Real RandomAux::computeValue() { if (_random_uo) // Use the coupled UO to return a value return _random_uo->getElementalValue(_current_elem->id()); else if (_generate_ints) // Use the built-in long random number generator directly return getRandomLong(); else // Use the built-in random number generator directly return getRandomReal(); }
void RandomElementalUserObject::execute() { _random_data[_current_elem->id()] = getRandomLong(); }
void RandomMaterial::computeQpProperties() { _rand_real[_qp] = getRandomReal(); _rand_long[_qp] = getRandomLong(); }