1 16 17 package org.apache.commons.math.random; 18 import java.util.Collection ; 19 20 24 public interface RandomData { 25 41 String nextHexString(int len); 42 43 61 int nextInt(int lower, int upper); 62 63 82 long nextLong(long lower, long upper); 83 84 98 String nextSecureHexString(int len); 99 100 123 int nextSecureInt(int lower, int upper); 124 125 146 long nextSecureLong(long lower, long upper); 147 148 163 long nextPoisson(double mean); 164 165 183 double nextGaussian(double mu, double sigma); 184 185 200 double nextExponential(double mean); 201 202 223 double nextUniform(double lower, double upper); 224 225 244 int[] nextPermutation(int n, int k); 245 246 269 Object [] nextSample(Collection c, int k); 270 } 271 | Popular Tags |