List of usage examples for java.util Random ints
public IntStream ints()
From source file:ai.grakn.test.graql.shell.GraqlShellIT.java
private static String randomString(int length) { Random random = new Random(); StringBuilder sb = new StringBuilder(); random.ints().limit(length).forEach(i -> sb.append((char) i)); return sb.toString(); }