AI: better attribute values generator

* Generates set of distinct values.
AI: minor improvement