uuid.randomuuid() in java code example Example: java random uuid String id = UUID.randomUUID().toString();