<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Diehard_tests</id>
		<title>Diehard tests - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Diehard_tests"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Diehard_tests&amp;action=history"/>
		<updated>2026-04-30T13:44:46Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Diehard_tests&amp;diff=6415&amp;oldid=prev</id>
		<title>Christoph: New page: :''note: archiving this from Wikipedia before it is deleted.''  The '''diehard tests''' are a battery of statistical tests for measuring the quality of a random number generator. They were...</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Diehard_tests&amp;diff=6415&amp;oldid=prev"/>
				<updated>2015-10-11T19:35:36Z</updated>
		
		<summary type="html">&lt;p&gt;New page: :&amp;#039;&amp;#039;note: archiving this from Wikipedia before it is deleted.&amp;#039;&amp;#039;  The &amp;#039;&amp;#039;&amp;#039;diehard tests&amp;#039;&amp;#039;&amp;#039; are a battery of statistical tests for measuring the quality of a random number generator. They were...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;:''note: archiving this from Wikipedia before it is deleted.''&lt;br /&gt;
&lt;br /&gt;
The '''diehard tests''' are a battery of statistical tests for measuring the quality of a random number generator. They were developed by George Marsaglia over several years and first published in 1995 on a CD-ROM of random numbers.&lt;br /&gt;
&lt;br /&gt;
These are the tests:&lt;br /&gt;
&lt;br /&gt;
* '''Birthday spacings''': Choose random points on a large interval. The spacings between the points should be asymptotically [[wikipedia:exponential distribution|exponentially distributed]].&amp;lt;ref&amp;gt;Renyi, 1953, p194&amp;lt;/ref&amp;gt; The name is based on the [[wikipedia:birthday paradox|birthday paradox]].&lt;br /&gt;
&lt;br /&gt;
* '''Overlapping permutations''': Analyze sequences of five consecutive random numbers. The 120 possible orderings should occur with statistically equal probability.&lt;br /&gt;
&lt;br /&gt;
* '''Ranks of matrices''': Select some number of bits from some number of random numbers to form a matrix over {0,1}, then determine the [[wikipedia:rank (linear algebra)|rank]] of the matrix. Count the ranks.&lt;br /&gt;
&lt;br /&gt;
* '''Monkey tests''': Treat sequences of some number of bits as &amp;quot;words&amp;quot;. Count the overlapping words in a stream. The number of &amp;quot;words&amp;quot; that do not appear should follow a known distribution. The name is based on the [[wikipedia:infinite monkey theorem|infinite monkey theorem]].&lt;br /&gt;
&lt;br /&gt;
* '''Count the 1s''': Count the 1 bits in each of either successive or chosen bytes. Convert the counts to &amp;quot;letters&amp;quot;, and count the occurrences of five-letter &amp;quot;words&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* '''Parking lot test''': Randomly place unit circles in a 100 x 100 square. A circle is successfully parked, if it does not overlaps an existing successfully parked one. After 12,000 tries, the number of successfully parked circles should follow a certain [[wikipedia:normal distribution|normal distribution]].&lt;br /&gt;
&lt;br /&gt;
* '''Minimum distance test''': Randomly place 8,000 points in a 10,000 x 10,000 square, then find the minimum distance between the pairs. The square of this distance should be exponentially distributed with a certain mean.&lt;br /&gt;
&lt;br /&gt;
* '''Random spheres test''': Randomly choose 4,000 points in a cube of edge 1,000. Center a sphere on each point, whose radius is the minimum distance to another point. The smallest sphere's volume should be exponentially distributed with a certain mean.&lt;br /&gt;
&lt;br /&gt;
* '''The squeeze test''': Multiply 2&amp;lt;sup&amp;gt;31&amp;lt;/sup&amp;gt; by random floats on &amp;lt;nowiki&amp;gt;(0,1)&amp;lt;/nowiki&amp;gt; until you reach 1. Repeat this 100,000 times. The number of floats needed to reach 1 should follow a certain distribution.&lt;br /&gt;
&lt;br /&gt;
* '''Overlapping sums test''': Generate a long sequence of random floats on &amp;lt;nowiki&amp;gt;(0,1)&amp;lt;/nowiki&amp;gt;. Add sequences of 100 consecutive floats. The sums should be normally distributed with characteristic mean and variance.&lt;br /&gt;
&lt;br /&gt;
* '''[[wikipedia:Wald–Wolfowitz runs test|Runs test]]''': Generate a long sequence of random floats on &amp;lt;nowiki&amp;gt;(0,1)&amp;lt;/nowiki&amp;gt;. Count ascending and descending runs. The counts should follow a certain distribution.&lt;br /&gt;
&lt;br /&gt;
* '''The craps test''': Play 200,000 games of [[wikipedia:craps|craps]], counting the wins and the number of throws per game. Each count should follow a certain distribution.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[wikipedia:Randomness test]]&lt;br /&gt;
* [[wikipedia:TestU01]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://www.stat.fsu.edu/pub/diehard/ The Marsaglia Random Number CDROM including the Diehard Battery of Tests of Randomness]&lt;br /&gt;
* [http://www.cs.hku.hk/~diehard/cdrom/ Mirror site]&lt;br /&gt;
* [http://www.phy.duke.edu/~rgb/General/dieharder.php DieHarder: a random number test suite including an alternative GPL implementation of Diehard tests in C]&lt;br /&gt;
* Renyi, A (1953). ''On the theory of order statistics'', Acta Mathematica Hungarica [http://www.akademiai.com/content/fn66125484nh5376/ Akadémiai Kiadó]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical and Specialized Skills]]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>