part5
Class Generic

java.lang.Object
  extended bypart5.PRNG
      extended bypart5.Generic

public class Generic
extends PRNG

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

Generic

public Generic()
        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

nextBit

public int nextBit()
            throws java.lang.Exception
A method to generate a single random bit as an integer value 0 or 1.

Specified by:
nextBit in class PRNG
Throws:
java.lang.Exception