random id with respect to time java code example Example: java unique id String uuid = UUID.randomUUID().toString();