|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Revision(value="$Revision: 1.4 $",
date="$Date: 2006/11/09 02:10:28 $",
tag="$Name: $")
public interface RandomTODO: Javadoc TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString
| Method Summary | |
|---|---|
int |
randomBits(int bits)
TODO: Javadoc Generate a random bitstring of the requested length. |
| Method Detail |
|---|
int randomBits(int bits)
Note that this method can be thought of as equivalent to performing
bits independant, random coin tosses.
bits - The number of random bits to generate. Given the size of the
int datatype in java, this parameter must be
32 or less. Note that asking for 0 random bits
will simply return the number 0.
0 and
whose lowest bits bits are randomly generated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||