A law can be deemed arbitrary and thus unconstitutional under the Equal Protection Clause when it results in discriminatory treatment without a substantial relation to an appropriate government objective or when it relies on irrelevant factors that do not reflect actual distinctions among different groups.
For example: A statute prohibiting only individuals under 25 from operating commercial trucks may be struck down if age is not shown to be significantly related to safe driving ability.