|
Uncommons Maths API (Version 1.2.3) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.maths.random.DiehardInputGenerator
public final class DiehardInputGenerator
Utility to generate an input file for the DIEHARD suite of statistical tests for random number generators.
| Method Summary | |
|---|---|
static void |
generateOutputFile(Random rng,
File outputFile)
Generates a file of random data in a format suitable for the DIEHARD test. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
args - The first argument is the class name of the RNG, the second
is the file to use for output.
Exception - If there are problems setting up the RNG or writing to
the output file.
public static void generateOutputFile(Random rng,
File outputFile)
throws IOException
rng - The random number generator to use to generate the data.outputFile - The file that the random data is written to.
IOException - If there is a problem writing to the file.
|
Uncommons Maths API (Version 1.2.3) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||