How to discover Variable from multiple actors on screen?

Each actor assignes itself a random key? How are you keeping them from duplicating the keys?