public abstract class Random extends Object
Constructor and Description |
---|
Random() |
Modifier and Type | Method and 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 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
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.