Content deleted Content added
Method was first described by Brother Edvin. Added relevant citation. |
m Since this is not a full program capable of compiling and running without modification, snipped out #include and main() and left for() loop intact. |
||
Line 13:
==Example Source Code==
<source lang="c">
// Requires math.h
{
▲for( i = 0; i < samplesToProduce; i++){
//select the middle six digits for the next seed
newseed = (x / 1000) % 100000;
Line 31 ⟶ 33:
x = pow(newseed,2);
storageArray[i] = x;
}
</source>
|