Home | History | Annotate | Download | only in html

Lines Matching refs:rnd

97           int r = rnd.nextInt(3);
101 if (rnd.nextBoolean()) {
102 for (int k = rnd.nextInt(4); --k >= 0;) {
103 attributes.add(pick(rnd, ATTR_NAMES));
104 attributes.add(pickChunk(rnd));
107 policy.openTag(pick(rnd, ELEMENT_NAMES), attributes);
110 policy.closeTag(pick(rnd, ELEMENT_NAMES));
113 policy.text(pickChunk(rnd));
162 private static String pick(Random rnd, String[] choices) {
163 return choices[rnd.nextInt(choices.length)];
166 private static String pickChunk(Random rnd) {
167 String chunk = pick(rnd, CHUNKS);
170 if (rnd.nextBoolean()) {
171 start = rnd.nextInt(end - 1);
173 if (end - start < 2 && rnd.nextBoolean()) {
174 end = start + rnd.nextInt(end - start);