Randc in an variable within an array of objects

In reply to dave_59:

Thank you all !
I missed the ‘unique’ constraint.
I added it and this is working well.

Thanks!