Lines Matching defs:bound
135 * given least value (inclusive) and bound (exclusive).
138 * @param bound the upper bound (exclusive)
140 * to bound
143 public int nextInt(int least, int bound) {
144 if (least >= bound)
146 return nextInt(bound - least) + least;
153 * @param n the bound on the random number to be returned. Must be
180 * given least value (inclusive) and bound (exclusive).
183 * @param bound the upper bound (exclusive)
186 * to bound
188 public long nextLong(long least, long bound) {
189 if (least >= bound)
191 return nextLong(bound - least) + least;
198 * @param n the bound on the random number to be returned. Must be
211 * given least value (inclusive) and bound (exclusive).
214 * @param bound the upper bound (exclusive)
217 * to bound
219 public double nextDouble(double least, double bound) {
220 if (least >= bound)
222 return nextDouble() * (bound - least) + least;