Hey guys how can I come up with a way of generating unique codes for identifying users in an online system? One that is not predictable?

Thanks