|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part5.PRNG part5.Generic
A class that implements a generic pseudo-random number/bit generator by using
a SecureRandom
object.
Constructor Summary | |
Generic()
|
Method Summary | |
int |
nextBit()
A method to generate a single random bit as an integer value 0 or 1 . |
Methods inherited from class part5.PRNG |
random, random |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Generic() throws java.lang.Exception
java.lang.Exception
Method Detail |
public int nextBit() throws java.lang.Exception
0
or 1
.
nextBit
in class PRNG
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |