Although not int, the method of creating unique identifiers usually uses a GUID. You can use Guid.NewGuid () to create it.
There are various conversion methods, including byte arrays and strings. For more information about GUIDs, you can read them on Wikipedia .
Good luck.
source
share