public abstract class Random
extends java.lang.Object
Constructor | Description |
---|---|
Random() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static SequenceIterator randomSequence(int numberOfItems, double seed) throws java.lang.IllegalArgumentException
numberOfItems
- number of random items
in the sequence.seed
- the initial seed.java.lang.IllegalArgumentException
- numberOfItems
is not positive.public static SequenceIterator randomSequence(int numberOfItems) throws java.lang.IllegalArgumentException
numberOfItems
- number of random items
in the sequence.java.lang.IllegalArgumentException
- numberOfItems
is not positive.public static DoubleValue randomSequence() throws XPathException
XPathException