Saturday, 1 August 2015

UUID random number genaretion

package foo;

import java.util.UUID;
import org.junit.Test;

public class UUID_numberGeneration {
   
    @Test
    public void uuidNumberGenerationTEst(){
      
        for (int i = 0; i < 15; i++) {
                UUID idTwo = UUID.randomUUID();
                System.out.println("UUID "+i+" : " + idTwo);
        }
    }
}

No comments:

Post a Comment