Home | History | Annotate | Download | only in makedict

Lines Matching refs:random

19 import java.util.Random;
63 public static int[] generateCodePointSet(final int codePointSetSize, final Random random) {
66 final int r = Math.abs(random.nextInt());
81 * Generates a random word.
83 public static String generateWord(final Random random, final int[] codePointSet) {
85 // 8 * 4 = 32 chars max, but we do it the following way so as to bias the random toward
88 final int count = 1 + (Math.abs(random.nextInt()) % 5)
89 + (Math.abs(random.nextInt()) % 5)
90 + (Math.abs(random.nextInt()) % 5)
91 + (Math.abs(random.nextInt()) % 5)
92 + (Math.abs(random.nextInt()) % 5)
93 + (Math.abs(random.nextInt()) % 5)
94 + (Math.abs(random.nextInt()) % 5)
95 + (Math.abs(random.nextInt()) % 5);
97 builder.appendCodePoint(codePointSet[Math.abs(random.nextInt()) % codePointSet.length]);