Add randomStr definition.