How can i find the unique code of a component or a value?

Is there an unique code for a component (i mean the one and only component in a specific algorithm) and if so can i find it somewhere?
same question for a value (be it number or geometry)

Thanks a lot!