|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.random.RandomNum
The RandomNum will produce a variable set of random numbers.
Constructor Summary | |
RandomNum()
|
Method Summary | |
void |
generateRandomObject()
generate the Random object that will be used for this random number generator |
java.lang.Number |
getRandom()
get the random number, for use with the <jsp:getProperty name="id" property="floatval"/> |
void |
setAlgorithm(java.lang.String value)
set the algorithm name |
void |
setProvider(java.lang.String value)
set the provider name |
void |
setRange(long low,
long up)
set the Range |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomNum()
Method Detail |
public final void generateRandomObject() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public final java.lang.Number getRandom()
-
- JspException if the range entered for the number generator is not
0-1public final void setRange(long low, long up)
low
- lower bound of the rangeup
- upper bound of the rangepublic final void setAlgorithm(java.lang.String value)
value
- name of the algorithm to use for a SecureRandom objectpublic final void setProvider(java.lang.String value)
value
- name of the package to check for the algorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |