how to generate unique random numbers within a range in java code example Example: java random unique number String id = UUID.randomUUID().toString();