Class EmgRandomGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.math3.random.RandomDataGenerator getGenerator()  
      List<Integer> getIndex​(String listID, int size, Map<String,​List<Integer>> sampleList)  
      protected List<String> getValuesFromList​(String list)
      Gets the values from list.
      List<Integer> nextAddTo​(int n, int m)
      Returns an array of n integers that addvar to m.
      double nextBinomialValue​(int numberOfTrials, double probabilityOfSuccess)
      Generates a random value from the Binomial Distribution.
      boolean nextBoolean()  
      void nextBytes​(byte[] bytes)  
      String nextCamelCaseString​(int length, int minWordLength)
      Generates a random string of the given length using the specified character set formatted in CameCase format.
      String nextCapitalisedString​(String charSet, int length)
      Next capitalised string.
      double nextDobule​(double upper)
      Returns a pseudorandom, uniformly distributed double value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      double nextDobule​(double lower, double upper)
      Returns a pseudorandom, uniformly distributed double value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      double nextDouble()  
      double nextExponentialValue​(double mean)
      Generates a random value from the Exponential Distribution.
      float nextFloat()  
      Object nextFromCollection​(Collection<?> c)
      Returns a single object selected randomly from the Collection c using a uniform distribution.
      Object nextFromList​(String listID)
      The listID must be the name of a parameter in the launch configuration.
      Object nextFromListAsSample​(String listID)
      The listID must be the name of a parameter in the launch configuration.
      double nextGaussian()  
      String nextHttpURI​(boolean addPort, boolean addPath, boolean addQuery, boolean addFragment)
      Generates a random URI that complies to: http:[//host[:port]][/]path[?query][#fragment] The scheme is The host is generated from a random string and uses a top-level domain.
      int nextInt()  
      int nextInt​(int n)  
      int nextInteger​(int upper)
      Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      int nextInteger​(int lower, int upper)
      Returns a pseudorandom, uniformly distributed int value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      long nextLong()  
      long nextLong​(long upper)
      Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random attribute generator's sequence.
      long nextLong​(long lower, long upper)
      Returns a pseudorandom, uniformly distributed long value between lower and upper (endpoints included), drawn from this random attribute generator's sequence.
      List<Object> nextSample​(String listID, int k)
      The listID must be the name of a parameter in the launch configuration.
      List<Object> nextSample​(Collection<?> c, int k)
      Returns an array of k objects selected randomly from the Collection c using a uniform distribution.
      String nextString​(String charSet, int length)
      Generates a random string of the given length using the specified character set.
      String nextURI()
      Generates a random URI.
      String nextURI​(boolean addPort, boolean addPath, boolean addQuery, boolean addFragment)
      Generates a random URI that complies to: scheme:[//[user:password@]host[:port]][/]path[?query][#fragment] The scheme is randomly selected from: http, ssh and ftp.
      double nextValue()
      Returns the next pseudorandom, value from this random attribute generator's sequence.
      void setSeed​(int seed)  
      void setSeed​(int[] seed)  
      void setSeed​(long seed)  
      void useBinomialDistribution​(int numberOfTrials, double probabilityOfSuccess)
      Use binomial distribution.
      void useExponentialDistribution​(double mean)
      Use exponential distribution.