@Test public void testRandomUID() throws Exception { String theUUID = UUID.randomUID(); assertNotNull(theUUID); assertTrue(theUUID.length() > 0); Long.valueOf(theUUID); }
public static String randomUID() { return Long.toString((long)(Math.random() * 1000000)); }
UUID { public static String randomUID() { return Long.toString((long)(Math.random() * 1000000)); } }
UUID { public static String randomUID() { return Long.toString((long)(Math.random() * 1000000)); } private  UUID(); }
UUID { public static String randomUID() { return Long.toString((long)(Math.random() * 1000000)); } private  UUID(); static String randomUID(); }
UUID { public static String randomUID() { return Long.toString((long)(Math.random() * 1000000)); } private  UUID(); static String randomUID();  }