Unique value generation

In reply to chaitanyajaladi:

Not sure why my solution won’t satisfy this, did you try?