Lines Matching refs:random
45 /** Generate a random phrase given a grammar.
52 * The seed acts like a unique identifier so you can get the same random
64 protected static Random random;
66 /** an experimental method to generate random phrases for a given
117 int randomAlt = random.nextInt(n) + 1;
128 // pick random element of set
130 int randomIndex = random.nextInt(typeSet.size());
139 /** Used to generate random strings */
147 long seed = System.currentTimeMillis(); // use random seed unless spec.
153 random = new Random(seed);