Class Random


  • public abstract class Random
    extends java.lang.Object
    This class implements extension functions in the http://exslt.org/random namespace.
    • Constructor Summary

      Constructors 
      Constructor Description
      Random()  
    • Constructor Detail

      • Random

        public Random()
    • Method Detail

      • randomSequence

        public static SequenceIterator randomSequence​(int numberOfItems,
                                                      double seed)
                                               throws java.lang.IllegalArgumentException
        Returns a sequence of random numbers between 0 and 1.
        Parameters:
        numberOfItems - number of random items in the sequence.
        seed - the initial seed.
        Returns:
        sequence of random numbers as an iterator.
        Throws:
        java.lang.IllegalArgumentException - numberOfItems is not positive.
      • randomSequence

        public static SequenceIterator randomSequence​(int numberOfItems)
                                               throws java.lang.IllegalArgumentException
        Returns a sequence of random numbers between 0 and 1.
        Parameters:
        numberOfItems - number of random items in the sequence.
        Returns:
        sequence of random numbers.
        Throws:
        java.lang.IllegalArgumentException - numberOfItems is not positive.