|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.option.exslt.Random
public abstract class Random
This class implements extension functions in the http://exslt.org/random namespace.
Constructor Summary | |
---|---|
Random()
|
Method Summary | |
---|---|
static DoubleValue |
randomSequence()
Returns a single random number X between 0 and 1. |
static SequenceIterator |
randomSequence(int numberOfItems)
Returns a sequence of random numbers between 0 and 1. |
static SequenceIterator |
randomSequence(int numberOfItems,
double seed)
Returns a sequence of random numbers between 0 and 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Random()
Method Detail |
---|
public static SequenceIterator randomSequence(int numberOfItems, double seed) throws IllegalArgumentException
numberOfItems
- number of random items
in the sequence.seed
- the initial seed.
IllegalArgumentException
- numberOfItems
is not positive.public static SequenceIterator randomSequence(int numberOfItems) throws IllegalArgumentException
numberOfItems
- number of random items
in the sequence.
IllegalArgumentException
- numberOfItems
is not positive.public static DoubleValue randomSequence() throws XPathException
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |