 Let's generate a version for UUID. Start with 128 bits. Represent them as hex characters. Add dashes after the 8th, 12th, 16th, and 20th hex characters. Set bits 49 to 52 to 0, 1, 0, 0. The binary representation of the version number four. Next, add the variant specifier to specify how the UUID is encoded. The only spec compliant value is 1, 0 for big endian. Bit 65, 66 are set to this variant specifier. The remaining bits are set to random data. You're done. Thanks for watching.